serverspec 0.10.10 → 0.10.11
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 +8 -8
- data/lib/serverspec/version.rb +1 -1
- 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: 09176ca7951fbb308e0a4e66d0c1454bb9bb3671
|
4
|
+
data.tar.gz: 9f9ca03c65d5f22212b424a6ea29026069b3606c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b25dad604254a0ee914e79794b90337a0e17290930093dd453c663ef6d9b0ba8e5db66c5192f5c20e5d3b053df0d14a93e8f57ce1ffb739ef4bf3f3de6d9a36b
|
7
|
+
data.tar.gz: a6bbd7d3933f7adf815c2b878a35e729186047bfc96ccc64b9e1a49c7a41a95c09205e54a8b2861bf854ef6ce840768ba158d7df70d17dab74540557a9ad17dd
|
data/lib/serverspec/setup.rb
CHANGED
@@ -15,21 +15,21 @@ module Serverspec
|
|
15
15
|
|
16
16
|
if @backend_type == 'Ssh'
|
17
17
|
print "Vagrant instance y/n: "
|
18
|
-
@vagrant = gets.chomp
|
18
|
+
@vagrant = $stdin.gets.chomp
|
19
19
|
if @vagrant =~ (/(true|t|yes|y|1)$/i)
|
20
20
|
@vagrant = true
|
21
21
|
print "Auto-configure Vagrant from Vagrantfile? y/n: "
|
22
|
-
auto_config = gets.chomp
|
22
|
+
auto_config = $stdin.gets.chomp
|
23
23
|
if auto_config =~ (/(true|t|yes|y|1)$/i)
|
24
24
|
auto_vagrant_configuration
|
25
25
|
else
|
26
26
|
print("Input vagrant instance name: ")
|
27
|
-
@hostname = gets.chomp
|
27
|
+
@hostname = $stdin.gets.chomp
|
28
28
|
end
|
29
29
|
else
|
30
30
|
@vagrant = false
|
31
31
|
print("Input target host name: ")
|
32
|
-
@hostname = gets.chomp
|
32
|
+
@hostname = $stdin.gets.chomp
|
33
33
|
end
|
34
34
|
else
|
35
35
|
@hostname = 'localhost'
|
@@ -52,7 +52,7 @@ Select number:
|
|
52
52
|
EOF
|
53
53
|
|
54
54
|
print prompt.chop
|
55
|
-
num = gets.to_i - 1
|
55
|
+
num = $stdin.gets.to_i - 1
|
56
56
|
puts
|
57
57
|
|
58
58
|
@os_type = [ 'UN*X', 'Windows' ][num] || 'UN*X'
|
@@ -68,7 +68,7 @@ Select a backend type:
|
|
68
68
|
Select number:
|
69
69
|
EOF
|
70
70
|
print prompt.chop
|
71
|
-
num = gets.to_i - 1
|
71
|
+
num = $stdin.gets.to_i - 1
|
72
72
|
puts
|
73
73
|
|
74
74
|
@backend_type = [ 'Ssh', 'Exec' ][num] || 'Exec'
|
@@ -84,7 +84,7 @@ Select a backend type:
|
|
84
84
|
Select number:
|
85
85
|
EOF
|
86
86
|
print prompt.chop
|
87
|
-
num = gets.to_i - 1
|
87
|
+
num = $stdin.gets.to_i - 1
|
88
88
|
puts
|
89
89
|
|
90
90
|
@backend_type = [ 'WinRM', 'Cmd' ][num] || 'Exec'
|
@@ -198,7 +198,7 @@ EOF
|
|
198
198
|
else
|
199
199
|
list_of_vms.each_with_index { |vm, index | puts "#{index}) #{vm}\n" }
|
200
200
|
print "Choose a VM from the Vagrantfile: "
|
201
|
-
chosen_vm = gets.chomp
|
201
|
+
chosen_vm = $stdin.gets.chomp
|
202
202
|
@hostname = list_of_vms[chosen_vm.to_i]
|
203
203
|
end
|
204
204
|
else
|
data/lib/serverspec/version.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: 0.10.
|
4
|
+
version: 0.10.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|