dumbwaiter 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dumbwaiter/cli.rb +1 -1
- data/lib/dumbwaiter/version.rb +1 -1
- data/spec/lib/dumbwaiter/cli_spec.rb +4 -2
- 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: d982d2f214ae14a68e7580cf7fce7ac5c5faab5b
|
4
|
+
data.tar.gz: 8c61bcff1b9d5bba3837d0bed4b321758a49e9a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14c30206fe158fb0da5ef33b546070bc59d14def43685b256bf08334d33648ae34dead8915ae60072bcf4a70a242d6d5d274b704050baf35dc06ddadb634fd2c
|
7
|
+
data.tar.gz: d49f8e84274ffbe8e490cd3e2da8a552ebfa310e16dacd31457a949dac7c2188ad882fcf56834a03da343523fccc10e8ad0030d24c34eaf1a4cdedf8f6795a9e
|
data/lib/dumbwaiter/cli.rb
CHANGED
@@ -81,7 +81,7 @@ module Dumbwaiter
|
|
81
81
|
def layers(stack_name)
|
82
82
|
stack = Stack.find(stack_name)
|
83
83
|
layer_names = stack.layers.map(&:shortname)
|
84
|
-
Kernel.puts(layer_names.join(
|
84
|
+
Kernel.puts(layer_names.join(" "))
|
85
85
|
rescue Dumbwaiter::Stack::NotFound => e
|
86
86
|
raise Thor::Error.new(e.message)
|
87
87
|
end
|
data/lib/dumbwaiter/version.rb
CHANGED
@@ -113,8 +113,10 @@ describe Dumbwaiter::Cli do
|
|
113
113
|
|
114
114
|
describe "#layers" do
|
115
115
|
context "when the stack exists" do
|
116
|
+
before { fake_opsworks.make_layer(fake_stack, "handsome", "frijoles") }
|
117
|
+
|
116
118
|
it "lists the layers" do
|
117
|
-
Kernel.should_receive(:puts).with(
|
119
|
+
Kernel.should_receive(:puts).with("beans frijoles")
|
118
120
|
cli.layers("ducks")
|
119
121
|
end
|
120
122
|
end
|
@@ -168,7 +170,7 @@ describe Dumbwaiter::Cli do
|
|
168
170
|
context "when the stack exists" do
|
169
171
|
context "when the layer exists" do
|
170
172
|
it "prints custom recipes for a layer event" do
|
171
|
-
Kernel.should_receive(:puts)
|
173
|
+
Kernel.should_receive(:puts).with("ham salami")
|
172
174
|
cli.custom_recipes("ducks", "beans", "setup")
|
173
175
|
end
|
174
176
|
end
|