Skip to content

Commit 7b39ba4

Browse files
committed
remove the wizarddev namespace on rake tasks
it was annoying
1 parent 1beda45 commit 7b39ba4

File tree

3 files changed

+39
-41
lines changed

3 files changed

+39
-41
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Or install it yourself as:
1919
$ gem install wizarddev-heroku
2020

2121
## Usage
22-
From `rake wizarddev:deploy`
22+
From `rake deploy`
2323

2424
```
2525
Deploys the currently checked out revision to Heroku.
@@ -32,8 +32,8 @@ Tasks include:
3232
3333
Uses the ~/.netrc file for authentication per the Heroku toolbelt.
3434
35-
usage: rake wizarddev:deploy TARGET=target_name
36-
usage: rake wizarddev:deploy:{staging|production}
35+
usage: rake deploy TARGET=target_name
36+
usage: rake deploy:{staging|production}
3737
```
3838

3939
## Example app.json
@@ -71,7 +71,7 @@ This is very similar and compatible with Heroku's `app.json`.
7171

7272
## Contributing
7373

74-
1. Fork it ( https://github.com/[my-github-username]/wizarddev-heroku/fork )
74+
1. Fork it ( https://github.com/wizarddevelopment/wizarddev-heroku/fork )
7575
2. Create your feature branch (`git checkout -b my-new-feature`)
7676
3. Commit your changes (`git commit -am 'Add some feature'`)
7777
4. Push to the branch (`git push origin my-new-feature`)
Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,42 @@
1-
namespace :wizarddev do
2-
task :deploy do
3-
if ENV['TARGET']
4-
Wizarddev::Heroku.load
5-
Wizarddev::Heroku::Deploy.new(ENV['TARGET']).deploy!
6-
else
7-
Rake::Task["wizarddev:deploy:help"].invoke
8-
end
1+
task :deploy do
2+
if ENV['TARGET']
3+
Wizarddev::Heroku.load
4+
Wizarddev::Heroku::Deploy.new(ENV['TARGET']).deploy!
5+
else
6+
Rake::Task["deploy:help"].invoke
97
end
8+
end
109

11-
namespace :deploy do
12-
desc 'Deploy script usage information'
13-
task :help do
14-
puts 'Deploys the currently checked out revision to heroku.'
15-
puts 'Reads the project\'s app.json file to determine tasks for a target.'
16-
puts 'Tasks include:'
17-
puts "\t Tag the release and pushes it to github"
18-
puts "\t Deploy the release to Heroku"
19-
puts "\t Execute commands remotely eg 'rake db:migrate'"
20-
puts "\t Restart the app"
21-
puts "\nUses the ~/.netrc file for authentication per the heroku toolbelt."
22-
puts "\nusage: rake wizarddev:deploy TARGET=target_name"
23-
puts "usage: rake wizarddev:deploy:{staging|production}"
24-
25-
Wizarddev::Heroku.load
26-
Wizarddev::Heroku::Deploy.check_auth_config
27-
exit 0
28-
end
10+
namespace :deploy do
11+
desc 'Deploy script usage information'
12+
task :help do
13+
puts 'Deploys the currently checked out revision to heroku.'
14+
puts 'Reads the project\'s app.json file to determine tasks for a target.'
15+
puts 'Tasks include:'
16+
puts "\t Tag the release and pushes it to github"
17+
puts "\t Deploy the release to Heroku"
18+
puts "\t Execute commands remotely eg 'rake db:migrate'"
19+
puts "\t Restart the app"
20+
puts "\nUses the ~/.netrc file for authentication per the heroku toolbelt."
21+
puts "\nusage: rake deploy TARGET=target_name"
22+
puts "usage: rake deploy:{staging|production}"
2923

30-
desc 'Deploy to Production'
31-
task :production do
32-
Wizarddev::Heroku.load
33-
Wizarddev::Heroku::Deploy.new(:production).deploy!
34-
end
24+
Wizarddev::Heroku.load
25+
Wizarddev::Heroku::Deploy.check_auth_config
26+
exit 0
27+
end
3528

36-
desc 'Deploy to Staging'
37-
task :staging do
38-
Wizarddev::Heroku.load
39-
Wizarddev::Heroku::Deploy.new(:staging).deploy!
40-
end
29+
desc 'Deploy to Production'
30+
task :production do
31+
Wizarddev::Heroku.load
32+
Wizarddev::Heroku::Deploy.new(:production).deploy!
33+
end
4134

35+
desc 'Deploy to Staging'
36+
task :staging do
37+
Wizarddev::Heroku.load
38+
Wizarddev::Heroku::Deploy.new(:staging).deploy!
4239
end
40+
4341
end
4442

lib/wizarddev/heroku/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Wizarddev
22
module Heroku
3-
VERSION = "0.0.1"
3+
VERSION = "0.0.2"
44
end
55
end

0 commit comments

Comments
 (0)