serverspec 2.41.8 → 2.42.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/appveyor.yml +1 -1
- data/lib/serverspec/setup.rb +6 -6
- data/lib/serverspec/type/group.rb +4 -0
- data/lib/serverspec/type/user.rb +4 -0
- data/lib/serverspec/version.rb +1 -1
- data/spec/type/base/group_spec.rb +5 -0
- data/spec/type/base/user_spec.rb +5 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a88aefa5bea49c95d23890cf9d79bbdb99be6ce2
|
4
|
+
data.tar.gz: 61f0f80e5892cd9f7355b44aaa080be540e4f823
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9ff35d0389464fc5ba7c67dd8c2e14898094d9317647c8bcd8f564791d84245221b713df6db6d3ffec0a658b3ae892f709f81e90fea5334c10122ec8e353eac
|
7
|
+
data.tar.gz: a369972dc000f8f6c8e830d5d29aa78a04782810fefa67b3b065d7bd776c13ce69266cd847c72a44a49e17f7a834ae0118339c1df7e6ce865dde0abc74c26cc0
|
data/appveyor.yml
CHANGED
@@ -60,7 +60,7 @@ install:
|
|
60
60
|
|
61
61
|
build_script:
|
62
62
|
- set SSL_CERT_FILE=C:/ruby24-x64/ssl/cert.pem
|
63
|
-
- ruby -rfileutils -e 'FileUtils.rm_r(File.join(Gem.dir, "cache", "bundler")) if Dir.
|
63
|
+
- ruby -rfileutils -e 'FileUtils.rm_r(File.join(Gem.dir, "cache", "bundler")) if Dir.exist?(File.join(Gem.dir, "cache", "bundler"))'
|
64
64
|
- bundle install --jobs 3 --retry 3
|
65
65
|
- net user
|
66
66
|
- net localgroup
|
data/lib/serverspec/setup.rb
CHANGED
@@ -127,7 +127,7 @@ describe port(80) do
|
|
127
127
|
end
|
128
128
|
EOF
|
129
129
|
|
130
|
-
if File.
|
130
|
+
if File.exist? "spec/#{@hostname}/sample_spec.rb"
|
131
131
|
old_content = File.read("spec/#{@hostname}/sample_spec.rb")
|
132
132
|
if old_content != content
|
133
133
|
$stderr.puts "!! spec/#{@hostname}/sample_spec.rb already exists and differs from template"
|
@@ -141,7 +141,7 @@ EOF
|
|
141
141
|
end
|
142
142
|
|
143
143
|
def self.safe_mkdir(dir)
|
144
|
-
if File.
|
144
|
+
if File.exist? dir
|
145
145
|
unless File.directory? dir
|
146
146
|
$stderr.puts "!! #{dir} already exists and is not a directory"
|
147
147
|
end
|
@@ -153,7 +153,7 @@ EOF
|
|
153
153
|
|
154
154
|
def self.safe_create_spec_helper
|
155
155
|
content = ERB.new(spec_helper_template, nil, '-').result(binding)
|
156
|
-
if File.
|
156
|
+
if File.exist? 'spec/spec_helper.rb'
|
157
157
|
old_content = File.read('spec/spec_helper.rb')
|
158
158
|
if old_content != content
|
159
159
|
$stderr.puts "!! spec/spec_helper.rb already exists and differs from template"
|
@@ -196,7 +196,7 @@ namespace :spec do
|
|
196
196
|
end
|
197
197
|
end
|
198
198
|
EOF
|
199
|
-
if File.
|
199
|
+
if File.exist? 'Rakefile'
|
200
200
|
old_content = File.read('Rakefile')
|
201
201
|
if old_content != content
|
202
202
|
$stderr.puts '!! Rakefile already exists and differs from template'
|
@@ -212,7 +212,7 @@ end
|
|
212
212
|
def self.find_vagrantfile
|
213
213
|
Pathname.new(Dir.pwd).ascend do |dir|
|
214
214
|
path = File.expand_path('Vagrantfile', dir)
|
215
|
-
return path if File.
|
215
|
+
return path if File.exist?(path)
|
216
216
|
end
|
217
217
|
nil
|
218
218
|
end
|
@@ -334,7 +334,7 @@ EOF
|
|
334
334
|
--color
|
335
335
|
--format documentation
|
336
336
|
EOF
|
337
|
-
if File.
|
337
|
+
if File.exist? '.rspec'
|
338
338
|
old_content = File.read('.rspec')
|
339
339
|
if old_content != content
|
340
340
|
$stderr.puts '!! .rspec already exists and differs from template'
|
data/lib/serverspec/type/user.rb
CHANGED
data/lib/serverspec/version.rb
CHANGED
data/spec/type/base/user_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.42.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -321,7 +321,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
321
321
|
- !ruby/object:Gem::Version
|
322
322
|
version: '0'
|
323
323
|
requirements: []
|
324
|
-
|
324
|
+
rubyforge_project:
|
325
|
+
rubygems_version: 2.5.1
|
325
326
|
signing_key:
|
326
327
|
specification_version: 4
|
327
328
|
summary: RSpec tests for your servers configured by Puppet, Chef, Itamae or anything
|