infopark_opsworks_helpers 0.3.2 → 0.3.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: 158bc01ccf98067e9ad68eb8110d6adf589a8b27
4
- data.tar.gz: bcd381b9ff0be0921d99cde4d089b63ae91a1b28
3
+ metadata.gz: e66f202d032e55f6505bcc1bb35d139eae7d65db
4
+ data.tar.gz: e8e72d80f478e0d247af007b8bb166bd0e4aa60f
5
5
  SHA512:
6
- metadata.gz: af91f1a4f0f0a8a37e1570541684192b079620d80718ef21b956afbff844c834e86fb30b44a5fbe58cf279aa1b79df3351e8975cb6c6dab2bd42fefc5bc298dd
7
- data.tar.gz: e80c61af34d4566e3d66eef04be0b19b202decf5c771d67c8c8807065de6833ba836d96e2f56712d60268e139444344e08e4edd0100cdc4f04bf3adab3ab0d32
6
+ metadata.gz: 2cf0c17b31f1ec3c132523289becd17f40fc02935ed44bd6df00419181f435414097d2e1984ed068695bbaf9f7c28b749ab2ccea014795b7f07926e91452e2c9
7
+ data.tar.gz: f2addc764fad4826c918499a65a8b3343e2e7c147be725ca3b443245dac3fb265ba9b4211e8cb5ab0b84780db8572d9e6d99ac908a47e2889f33bcbe26015464
@@ -7,8 +7,6 @@ end
7
7
  module OpsworksHelpers
8
8
  class Deployment < OpsworksResource
9
9
 
10
- attr_accessor :command
11
-
12
10
  def id
13
11
  opsworks_resource.deployment_id
14
12
  end
@@ -51,5 +49,9 @@ module OpsworksHelpers
51
49
  end
52
50
  end
53
51
 
52
+ private
53
+
54
+ attr_accessor :command
55
+
54
56
  end
55
57
  end
@@ -6,7 +6,7 @@ module OpsworksHelpers
6
6
  private
7
7
 
8
8
  def opsworks
9
- @opsworks ||= Aws::OpsWorks::Client.new(region: 'us-east-1')
9
+ @opsworks ||= Aws::OpsWorks::Client.new(region: aws_region)
10
10
  end
11
11
 
12
12
  def stack_id
@@ -19,5 +19,9 @@ module OpsworksHelpers
19
19
  fail('Please provide AWS_OPSWORKS_APP_ID in env.')
20
20
  end
21
21
 
22
+ def aws_region
23
+ ENV.fetch('AWS_REGION', 'us-east-1')
24
+ end
25
+
22
26
  end
23
27
  end
@@ -1,3 +1,3 @@
1
1
  module OpsworksHelpers
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_opsworks_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infopark AG
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-14 00:00:00.000000000 Z
12
+ date: 2016-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler