thor-aws 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/lib/thor/aws.rb +5 -1
- data/lib/thor/aws/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30c282c16eec2450dd0a2fc511795c0c30a2459e
|
4
|
+
data.tar.gz: 8f6c3476f1de624ff95864a301ac036858ad1530
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ffd713c06d1b71d5a412408d854dc5701c5b1bd4a589bfdcff731d53724d45166eefcce84c278cd0ef334819a969576a6015c1d5fe49faf7fe28675c737072c
|
7
|
+
data.tar.gz: cfd04a26ca4893acbe2cbe912b7770260314b1b9b8a350d0a808f20812ce649f685b22b5221e2f7010e7765f1d616e802067c7f5b8f4801e7d6987be60a2ff9d
|
data/lib/thor/aws.rb
CHANGED
@@ -55,6 +55,10 @@ module Thor::Aws
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
+
def instance_variable_get_or_set(name, object)
|
59
|
+
instance_variable_get(name) or instance_variable_set(name, object)
|
60
|
+
end
|
61
|
+
|
58
62
|
{
|
59
63
|
autoscaling: Aws::AutoScaling::Resource,
|
60
64
|
cloudformation: Aws::CloudFormation::Resource,
|
@@ -101,7 +105,7 @@ module Thor::Aws
|
|
101
105
|
swf: Aws::SWF::Resource,
|
102
106
|
}.each do |name, klass|
|
103
107
|
define_method name do
|
104
|
-
klass.new
|
108
|
+
instance_variable_get_or_set :"@#{name}", klass.new(aws_configuration)
|
105
109
|
end
|
106
110
|
end
|
107
111
|
end
|
data/lib/thor/aws/version.rb
CHANGED