serverspec 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
data/lib/serverspec.rb CHANGED
@@ -12,9 +12,9 @@ require 'serverspec/commands/solaris'
12
12
 
13
13
  RSpec.configure do |c|
14
14
  c.include(Serverspec::Helper)
15
- c.include(Serverspec::RedHatHelper, :os => :redhat)
16
- c.include(Serverspec::DebianHelper, :os => :debian)
17
- c.include(Serverspec::GentooHelper, :os => :gentoo)
15
+ c.include(Serverspec::RedHatHelper, :os => :redhat)
16
+ c.include(Serverspec::DebianHelper, :os => :debian)
17
+ c.include(Serverspec::GentooHelper, :os => :gentoo)
18
18
  c.include(Serverspec::SolarisHelper, :os => :solaris)
19
19
  c.add_setting :host, :default => nil
20
20
  c.add_setting :ssh, :default => nil
@@ -10,7 +10,7 @@ module Serverspec
10
10
  end
11
11
 
12
12
  def check_listening port
13
- "netstat -an -P tcp 2> /dev/null | grep LISTEN | grep '\.#{port} '"
13
+ "netstat -an 2> /dev/null | egrep 'LISTEN|Idle' | grep '\.#{port} '"
14
14
  end
15
15
 
16
16
  def check_running service
@@ -1,6 +1,6 @@
1
1
  RSpec::Matchers.define :be_linked_to do |target|
2
2
  match do |link|
3
- ret = ssh_exec(RSpec.configuration.host, commands.check_link(link, target))
3
+ ret = ssh_exec(commands.check_link(link, target))
4
4
  ret[:exit_code] == 0
5
5
  end
6
6
  end
@@ -1,7 +1,7 @@
1
1
  RSpec::Matchers.define :have_cron_entry do |entry|
2
2
  match do |actual|
3
3
  @user ||= 'root'
4
- ret = ssh_exec(RSpec.configuration.host, commands.check_cron_entry(@user, entry))
4
+ ret = ssh_exec(commands.check_cron_entry(@user, entry))
5
5
  ret[:exit_code] == 0
6
6
  end
7
7
  chain :with_user do |user|
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,88 +1,90 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.13
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ hash: 3
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 14
10
+ version: 0.0.14
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Gosuke Miyashita
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-03-28 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-03-29 00:00:00 +09:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
15
22
  name: net-ssh
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
31
36
  name: bundler
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ~>
36
- - !ruby/object:Gem::Version
37
- version: '1.3'
38
- type: :development
39
37
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
38
+ requirement: &id002 !ruby/object:Gem::Requirement
41
39
  none: false
42
- requirements:
40
+ requirements:
43
41
  - - ~>
44
- - !ruby/object:Gem::Version
45
- version: '1.3'
46
- - !ruby/object:Gem::Dependency
47
- name: rspec
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
42
+ - !ruby/object:Gem::Version
43
+ hash: 9
44
+ segments:
45
+ - 1
46
+ - 3
47
+ version: "1.3"
54
48
  type: :development
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: rspec
55
52
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
53
+ requirement: &id003 !ruby/object:Gem::Requirement
57
54
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: rake
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
70
62
  type: :development
63
+ version_requirements: *id003
64
+ - !ruby/object:Gem::Dependency
65
+ name: rake
71
66
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
67
+ requirement: &id004 !ruby/object:Gem::Requirement
73
68
  none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
75
+ version: "0"
76
+ type: :development
77
+ version_requirements: *id004
78
78
  description: RSpec tests for your provisioned servers
79
- email:
79
+ email:
80
80
  - gosukenator@gmail.com
81
- executables:
81
+ executables:
82
82
  - serverspec-init
83
83
  extensions: []
84
+
84
85
  extra_rdoc_files: []
85
- files:
86
+
87
+ files:
86
88
  - .gitignore
87
89
  - Gemfile
88
90
  - LICENSE.txt
@@ -120,32 +122,41 @@ files:
120
122
  - spec/solaris/matchers_spec.rb
121
123
  - spec/spec_helper.rb
122
124
  - spec/support/shared_matcher_examples.rb
125
+ has_rdoc: true
123
126
  homepage: https://github.com/mizzy/serverspec
124
- licenses:
127
+ licenses:
125
128
  - MIT
126
129
  post_install_message:
127
130
  rdoc_options: []
128
- require_paths:
131
+
132
+ require_paths:
129
133
  - lib
130
- required_ruby_version: !ruby/object:Gem::Requirement
134
+ required_ruby_version: !ruby/object:Gem::Requirement
131
135
  none: false
132
- requirements:
133
- - - ! '>='
134
- - !ruby/object:Gem::Version
135
- version: '0'
136
- required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ hash: 3
140
+ segments:
141
+ - 0
142
+ version: "0"
143
+ required_rubygems_version: !ruby/object:Gem::Requirement
137
144
  none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ hash: 3
149
+ segments:
150
+ - 0
151
+ version: "0"
142
152
  requirements: []
153
+
143
154
  rubyforge_project:
144
- rubygems_version: 1.8.25
155
+ rubygems_version: 1.3.7
145
156
  signing_key:
146
157
  specification_version: 3
147
158
  summary: RSpec tests for your provisioned servers
148
- test_files:
159
+ test_files:
149
160
  - spec/debian/matchers_spec.rb
150
161
  - spec/gentoo/matchers_spec.rb
151
162
  - spec/redhat/matchers_spec.rb