serverspec 2.10.1 → 2.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverspec/setup.rb +7 -4
- data/lib/serverspec/version.rb +1 -1
- data/wercker.yml +0 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3eb7ee244af74cf36302726288caabfc92a7d2e8
|
4
|
+
data.tar.gz: ebe34f62ffc42c9b97ec1cb58a5a21bfb4b59005
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 935fa12dded4c4a9505f4239a61b3166928f4c65969b741430ffe9edbe794d629d5fc4341b4244df2a8ccf19a2625df4333f61ad511894715b27bb97c9ba5c0a
|
7
|
+
data.tar.gz: a96bbc49570b3b544491ff7a09e24ae307b8ef4e516607081ecd43c48ebdbd3af59cfd9a47b065012d5233fe2e24896d1a23a9cbf37237d0a75faec1b18bced5
|
data/lib/serverspec/setup.rb
CHANGED
@@ -178,17 +178,20 @@ namespace :spec do
|
|
178
178
|
targets = []
|
179
179
|
Dir.glob('./spec/*').each do |dir|
|
180
180
|
next unless File.directory?(dir)
|
181
|
-
|
181
|
+
target = File.basename(dir)
|
182
|
+
target = "_#{target}" if target == "default"
|
183
|
+
targets << target
|
182
184
|
end
|
183
185
|
|
184
186
|
task :all => targets
|
185
187
|
task :default => :all
|
186
188
|
|
187
189
|
targets.each do |target|
|
188
|
-
|
190
|
+
original_target = target == "_default" ? target[1..-1] : target
|
191
|
+
desc "Run serverspec tests to #{original_target}"
|
189
192
|
RSpec::Core::RakeTask.new(target.to_sym) do |t|
|
190
|
-
ENV['TARGET_HOST'] =
|
191
|
-
t.pattern = "spec/#{
|
193
|
+
ENV['TARGET_HOST'] = original_target
|
194
|
+
t.pattern = "spec/#{original_target}/*_spec.rb"
|
192
195
|
end
|
193
196
|
end
|
194
197
|
end
|
data/lib/serverspec/version.rb
CHANGED
data/wercker.yml
CHANGED
@@ -1,18 +1,11 @@
|
|
1
1
|
box: mizzy/serverspec-base@0.0.6
|
2
2
|
build:
|
3
3
|
steps:
|
4
|
-
- script:
|
5
|
-
name: Run setup.sh
|
6
|
-
code: $WORKING_DIR/setup.sh
|
7
4
|
- script:
|
8
5
|
name: Run walter
|
9
6
|
code: ./walter
|
10
7
|
cwd: $WORKING_DIR
|
11
8
|
|
12
9
|
after-steps:
|
13
|
-
- script:
|
14
|
-
name: Run vagrant destroy
|
15
|
-
code: vagrant destroy --force
|
16
|
-
cwd: $WORKING_DIR
|
17
10
|
- 1syo/idobata-notify@0.1.1:
|
18
11
|
token: $IDOBATA_TOKEN
|
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.10.
|
4
|
+
version: 2.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|