wizarddev-heroku 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/wizarddev/heroku/tasks/deploy.rb +34 -36
- data/lib/wizarddev/heroku/version.rb +1 -1
- data/wizarddev-heroku.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5f674f0614372098e0372bbbd6bca3a9f223604
|
4
|
+
data.tar.gz: 3176f853dac6eebd61087fce42ea946357d1fc8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9f3ff52761658651c5ba8e262b89382ab65cb4ad236398fbba4c585d14fbc332c6f245c5b948984b9f25ea90ff52b6ab1afb094c77cdec107d9993dfe6e96ef
|
7
|
+
data.tar.gz: b0a74c052666db7b3050d835fdc77090c178303b40d049df1cd29093ce10a29d45105ea848b5e428e6a0d821fef0edca31bbe335606bf7dae84d51f5899e9bfd
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ Or install it yourself as:
|
|
19
19
|
$ gem install wizarddev-heroku
|
20
20
|
|
21
21
|
## Usage
|
22
|
-
From `rake
|
22
|
+
From `rake deploy`
|
23
23
|
|
24
24
|
```
|
25
25
|
Deploys the currently checked out revision to Heroku.
|
@@ -32,8 +32,8 @@ Tasks include:
|
|
32
32
|
|
33
33
|
Uses the ~/.netrc file for authentication per the Heroku toolbelt.
|
34
34
|
|
35
|
-
usage: rake
|
36
|
-
usage: rake
|
35
|
+
usage: rake deploy TARGET=target_name
|
36
|
+
usage: rake deploy:{staging|production}
|
37
37
|
```
|
38
38
|
|
39
39
|
## Example app.json
|
@@ -71,7 +71,7 @@ This is very similar and compatible with Heroku's `app.json`.
|
|
71
71
|
|
72
72
|
## Contributing
|
73
73
|
|
74
|
-
1. Fork it ( https://github.com/
|
74
|
+
1. Fork it ( https://github.com/wizarddevelopment/wizarddev-heroku/fork )
|
75
75
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
76
76
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
77
77
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -1,44 +1,42 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
9
7
|
end
|
8
|
+
end
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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}"
|
29
23
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
end
|
24
|
+
Wizarddev::Heroku.load
|
25
|
+
Wizarddev::Heroku::Deploy.check_auth_config
|
26
|
+
exit 0
|
27
|
+
end
|
35
28
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
29
|
+
desc 'Deploy to Production'
|
30
|
+
task :production do
|
31
|
+
Wizarddev::Heroku.load
|
32
|
+
Wizarddev::Heroku::Deploy.new(:production).deploy!
|
33
|
+
end
|
41
34
|
|
35
|
+
desc 'Deploy to Staging'
|
36
|
+
task :staging do
|
37
|
+
Wizarddev::Heroku.load
|
38
|
+
Wizarddev::Heroku::Deploy.new(:staging).deploy!
|
42
39
|
end
|
40
|
+
|
43
41
|
end
|
44
42
|
|
data/wizarddev-heroku.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ['francis@wizarddevelopment.com']
|
11
11
|
spec.summary = %q{Deploys rails apps to heroku}
|
12
12
|
# spec.description = %q{TODO: Write a longer description. Optional.}
|
13
|
-
spec.homepage = 'https://
|
13
|
+
spec.homepage = 'https://github.com/wizarddevelopment/wizarddev-heroku'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wizarddev-heroku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francis Gulotta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,7 +100,7 @@ files:
|
|
100
100
|
- lib/wizarddev/heroku/tasks/deploy.rb
|
101
101
|
- lib/wizarddev/heroku/version.rb
|
102
102
|
- wizarddev-heroku.gemspec
|
103
|
-
homepage: https://
|
103
|
+
homepage: https://github.com/wizarddevelopment/wizarddev-heroku
|
104
104
|
licenses:
|
105
105
|
- MIT
|
106
106
|
metadata: {}
|