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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d75536a7e954c9ad549223db5c8f8a04b404f0e7
4
- data.tar.gz: 89200dfa1c490bab1fa166ae0201b425f6560da4
3
+ metadata.gz: 59a47a622dbc4bdb15ba1c57faa21728cf8deccd
4
+ data.tar.gz: c2ecfc2e29db1d5d5e6d8857e06f3b3bb2bda657
5
5
  SHA512:
6
- metadata.gz: cc8434074721bf8f81f510f36444d99efc57f8285edb8a11070edaa279890bbda15a877a8532fc38a930ad6d0b93f2439e515820f3277b928dee81fc3a5badd5
7
- data.tar.gz: dbd149f31fad972b233642177cf5c2882904a3320d97a63bc587e20c0170267a42ae34a9b758fe5ea7a9145057e9eecfca04ebf89fbbe0583f03b3150f4d6749
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|
@@ -1,3 +1,3 @@
1
1
  module Railsworks
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-05-05 00:00:00.000000000 Z
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.5
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