railsworks 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/railsworks/tasks/deploy.rake +17 -0
- data/lib/railsworks/version.rb +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: 59a47a622dbc4bdb15ba1c57faa21728cf8deccd
|
4
|
+
data.tar.gz: c2ecfc2e29db1d5d5e6d8857e06f3b3bb2bda657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a894923e666b251f16235fc17bcddfdbc5ac8733a8325a4c797cf0fa113b0375a343e77c6f969b5e0af372047a06a38f49af0cb91187b18189be28052c4968d
|
7
|
+
data.tar.gz: 0b60af0f47f6e98de88c5b5e4aeed89c68a94ac7ef9201c1e7b3c35d6f5db4c8e78881ad4c48ad5004cc5506f67584fd40b38d5ce1e4f9c606833a9cacb5eec9
|
@@ -4,6 +4,23 @@ Bundler.require if defined?(Bundler)
|
|
4
4
|
|
5
5
|
namespace :deploy do
|
6
6
|
desc "Deploy master to prod"
|
7
|
+
task :staging do
|
8
|
+
regions = YAML.load_file('config/opsworks.yml')['staging']
|
9
|
+
regions.each do |region, value|
|
10
|
+
client = Aws::OpsWorks::Client.new(region: region)
|
11
|
+
client.create_deployment(
|
12
|
+
stack_id: value['stack_id'],
|
13
|
+
app_id: value['app_id'],
|
14
|
+
command: {
|
15
|
+
name: "deploy",
|
16
|
+
args: {
|
17
|
+
"migrate" => ["true"],
|
18
|
+
},
|
19
|
+
}
|
20
|
+
)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
7
24
|
task :production do
|
8
25
|
regions = YAML.load_file('config/opsworks.yml')['production']
|
9
26
|
regions.each do |region, value|
|
data/lib/railsworks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railsworks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kurt Nelson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.4.
|
110
|
+
rubygems_version: 2.4.6
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Useful rake tasks for apps deployed with OpsWorks
|