dumbwaiter 0.5.2 → 0.5.3
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/dumbwaiter/layer.rb +2 -2
- data/lib/dumbwaiter/version.rb +1 -1
- data/spec/lib/dumbwaiter/layer_spec.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c21f83fff755f69bb8c212ef61f236d18da2ce3
|
4
|
+
data.tar.gz: 9f802898695b4fcda755322d1124ce65353e7d51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e377a66e69a857a65196e19bbdfebda5fd11c0ca836e2c50779cfb2e69758feaa0e1e50075011da15626b1342a3b1bf8d49cccaed0af3310e6e7631a019c05d2
|
7
|
+
data.tar.gz: 4b6ce23630f09799e262c9c99fa742b7d79b787cfd60910ab8a74f3df3f0031e60bb8391e53d010be4ddd03a9e8c9953aa01b6afc09ed6b97460af410248f3fd
|
data/lib/dumbwaiter/layer.rb
CHANGED
@@ -29,13 +29,13 @@ class Dumbwaiter::Layer
|
|
29
29
|
opsworks_layer.shortname
|
30
30
|
end
|
31
31
|
|
32
|
-
def run_recipe(
|
32
|
+
def run_recipe(*recipes)
|
33
33
|
opsworks.create_deployment(
|
34
34
|
stack_id: stack.id,
|
35
35
|
instance_ids: instances.map(&:id),
|
36
36
|
command: {
|
37
37
|
name: "execute_recipes",
|
38
|
-
args: {recipes:
|
38
|
+
args: {recipes: recipes}
|
39
39
|
}
|
40
40
|
)
|
41
41
|
end
|
data/lib/dumbwaiter/version.rb
CHANGED
@@ -54,6 +54,15 @@ describe Dumbwaiter::Layer do
|
|
54
54
|
end
|
55
55
|
layer.run_recipe("meatballs")
|
56
56
|
end
|
57
|
+
|
58
|
+
it "executes multiple recipes" do
|
59
|
+
fake_opsworks.should_receive(:create_deployment) do |params|
|
60
|
+
params[:command][:args][:recipes].should == %w[
|
61
|
+
horrifying::salad regrettable::potatoes
|
62
|
+
]
|
63
|
+
end
|
64
|
+
layer.run_recipe("horrifying::salad", "regrettable::potatoes")
|
65
|
+
end
|
57
66
|
end
|
58
67
|
|
59
68
|
describe "#update_custom_recipes" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dumbwaiter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Doc Ritezel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|