testlab 1.20.3 → 1.20.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/testlab/provisioners/hosts_file.rb +9 -2
- data/lib/testlab/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTQ1NmM1Y2QwZmZkMDRmYWI1YjdkZDYxYTcwOWJkNGIxNDc3ZTkzNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjY5MzAyY2M5MDU5YzRjZGY2MmNjNGNhOWUzZjY1MzA0YzA4MTdjNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmQzYWJjNjIyODgxYmY5Y2Y0YzcxODg3N2MxYWJmOGViYWQwN2NiYTRhODA2
|
10
|
+
YzMzODY1Zjg4OWZiZDlkOWRkMzFiODMzNWQ1OTA2NjIyNTg3ZDVkNzQyODRj
|
11
|
+
NTVjMWJjNjVkOGZkZGEyN2JhMjRiZGQ4ZjcwNmU0NWU5NGQzMjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Njg4NmNiNGYyNjUxYWExNDNmOTFmNDEwMDA2YWNkNjMxZTlhZDA2MDgxOGRl
|
14
|
+
NDA1MDdhZGU0N2Y4OTMwNjhlMWYwYjE3YTQyNmRhNjkxOTg0ZDEzNmFhYWY5
|
15
|
+
ZjRjMjU5ZTJiOTdmYmZlZjcwZTI4ODRhZjBkNjc1ZmFmNTQxNmQ=
|
@@ -37,14 +37,21 @@ class TestLab
|
|
37
37
|
private
|
38
38
|
|
39
39
|
def add_hosts(container)
|
40
|
-
|
41
|
-
set -x
|
40
|
+
script = <<-EOF
|
42
41
|
cat <<EOI | #{sudo} tee -a /etc/hosts
|
43
42
|
#{def_tag}
|
44
43
|
#{hosts_blob(container)}
|
45
44
|
#{end_tag}
|
46
45
|
EOI
|
47
46
|
EOF
|
47
|
+
|
48
|
+
tempfile = Tempfile.new('script')
|
49
|
+
tempfile.write(script)
|
50
|
+
tempfile.flush
|
51
|
+
|
52
|
+
command = %(/bin/bash -x #{tempfile.path})
|
53
|
+
|
54
|
+
@command.exec(command)
|
48
55
|
end
|
49
56
|
|
50
57
|
def remove_hosts
|
data/lib/testlab/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testlab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.20.
|
4
|
+
version: 1.20.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Patten
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|