cucumber-nagios 0.9.0 → 0.9.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.
@@ -4,11 +4,13 @@ end
4
4
 
5
5
  Then /^I can ssh to "([^\"]*)" with the following credentials:$/ do |host, table|
6
6
  @auth_methods ||= %w(publickey password)
7
-
7
+
8
8
  credentials = table.hashes
9
9
  credentials.each do |creds|
10
10
  lambda {
11
- Net::SSH.start(host, creds["username"], :password => creds["password"], :auth_methods => @auth_methods)
11
+ @connection = Net::SSH.start(host, creds["username"],
12
+ :password => creds["password"],
13
+ :auth_methods => @auth_methods)
12
14
  }.should_not raise_error
13
15
  end
14
16
  end
@@ -19,21 +21,23 @@ Then /^I can ssh to the following hosts with these credentials:$/ do |table|
19
21
  session_details = table.hashes
20
22
 
21
23
  session_details.each do |session|
22
- # initialize a list of keys and auth methods for just this session, as
24
+ # initialize a list of keys and auth methods for just this session, as
23
25
  # session can have session-specific keys mixed with global keys
24
26
  session_keys = Array.new(@keys)
25
- session_auth_methods = Array.new(@auth_methods)
27
+ session_auth_methods = Array.new(@auth_methods)
26
28
 
27
- # you can pass in a keyfile in the session details, so we need to
29
+ # you can pass in a keyfile in the session details, so we need to
28
30
  if session["keyfile"]
29
31
  session_keys << session["keyfile"]
30
32
  session_auth_methods << "publickey"
31
33
  end
32
-
34
+
33
35
  lambda {
34
- Net::SSH.start(session["hostname"], session["username"], :password => session["password"],
35
- :auth_methods => session_auth_methods,
36
- :keys => session_keys)
36
+ @connection = Net::SSH.start(session["hostname"],
37
+ session["username"],
38
+ :password => session["password"],
39
+ :auth_methods => session_auth_methods,
40
+ :keys => session_keys)
37
41
  }.should_not raise_error
38
42
  end
39
43
  end
@@ -56,14 +60,14 @@ When /^I ssh to "([^\"]*)" with the following credentials:$/ do |hostname, table
56
60
  @auth_methods ||= %w(password)
57
61
  session = table.hashes.first
58
62
  session_keys = Array.new(@keys)
59
- session_auth_methods = Array.new(@auth_methods)
63
+ session_auth_methods = Array.new(@auth_methods)
60
64
  if session["keyfile"]
61
65
  session_keys << session["keyfile"]
62
66
  session_auth_methods << "publickey"
63
67
  end
64
68
 
65
69
  lambda {
66
- @connection = Net::SSH.start(hostname, session["username"], :password => session["password"],
70
+ @connection = Net::SSH.start(hostname, session["username"], :password => session["password"],
67
71
  :auth_methods => session_auth_methods,
68
72
  :keys => session_keys)
69
73
  }.should_not raise_error
@@ -1,5 +1,5 @@
1
1
  module Cucumber
2
2
  module Nagios
3
- VERSION = '0.9.0'
3
+ VERSION = '0.9.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-nagios
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
5
- prerelease: false
4
+ hash: 63
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 0
10
- version: 0.9.0
9
+ - 2
10
+ version: 0.9.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lindsay Holmwood
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-06 00:00:00 +11:00
18
+ date: 2011-06-14 00:00:00 +10:00
19
19
  default_executable: cucumber-nagios
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -255,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
255
  requirements: []
256
256
 
257
257
  rubyforge_project:
258
- rubygems_version: 1.3.7
258
+ rubygems_version: 1.6.2
259
259
  signing_key:
260
260
  specification_version: 3
261
261
  summary: Systems testing plugin for Nagios using Cucumber.