chef_cap 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module ChefCap
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -43,6 +43,7 @@ if ChefDnaParser.parsed["environments"]
43
43
  end
44
44
  end
45
45
  end
46
+ after environment.to_sym, "ssh:set_options"
46
47
  end
47
48
  end
48
49
 
@@ -249,11 +249,15 @@ describe "chef_cap" do
249
249
  chef_cap.cap_ssh_options[:keys].should == "some_ssh_key_path"
250
250
  end
251
251
 
252
-
253
252
  it "adds a before ssh:transfer_keys hook to call ssh:set_options" do
254
253
  chef_cap.cap_before["ssh:transfer_keys"].should_not be_nil
255
254
  chef_cap.cap_before["ssh:transfer_keys"].should include("ssh:set_options")
256
255
  end
256
+
257
+ it "adds a after <environment> hook to call ssh:set_options" do
258
+ chef_cap.cap_after[:nossh].should_not be_nil
259
+ chef_cap.cap_after[:nossh].should include("ssh:set_options")
260
+ end
257
261
  end
258
262
 
259
263
  context "when a value is null" do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 5
9
- version: 0.1.5
8
+ - 6
9
+ version: 0.1.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Case Commons, LLC