testlab 1.20.4 → 1.20.5
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/nfs_mount.rb +9 -2
- data/lib/testlab/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGVmYjE2YjI2NmI0MWEwMDA1NWQ3NjQ4NTI3NWQxNGE3OTMyZWVmYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTY0Y2FhMWZhMmMzMmE2ZGZkNTRjODUxODgzMDk5ZGRjYmU4YjUwZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzFlNzQ1ZGQ1MGJkOWM0ZDQwNTI4MDYxMDFiNGE1Nzg4NDk3YTRlNGJmNzQx
|
10
|
+
ZjM1YTAwMjkyNmQxN2E5YjVjYmNiYmRhZjczMWFjMDM3NmI0OGJmM2M0MjM2
|
11
|
+
NWY1NTFiYWIxZDZlNzAzNjYxMjZjZGU3OTNkNzczMGE1MGFjNTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzFjMTU3NDliYmVlMDgyZDM2NGE5YjA4YzBiNzVhNDBlMDA2NTA2NGQ1ZmM1
|
14
|
+
MTkxYTA4NDNhMDk2NjdmY2E4N2FhZDI1MWNmNDdjMzMzMTljMzRjMGQwYzc5
|
15
|
+
ZTI4NmFiMzBiMmY2ZDQwODYzMjgyOGFhNGE4ZjM4NjY2ZTUyY2Y=
|
@@ -55,8 +55,7 @@ class TestLab
|
|
55
55
|
private
|
56
56
|
|
57
57
|
def add_nfs_mounts(container)
|
58
|
-
|
59
|
-
set -x
|
58
|
+
script = <<-EOF
|
60
59
|
#{service_check}
|
61
60
|
grep '#{def_tag(container)}' /etc/exports && exit 0
|
62
61
|
cat <<EOI | #{sudo} tee -a /etc/exports
|
@@ -66,6 +65,14 @@ cat <<EOI | #{sudo} tee -a /etc/exports
|
|
66
65
|
EOI
|
67
66
|
#{restart_service_command}
|
68
67
|
EOF
|
68
|
+
|
69
|
+
tempfile = Tempfile.new('script')
|
70
|
+
tempfile.write(script)
|
71
|
+
tempfile.flush
|
72
|
+
|
73
|
+
command = %(/bin/bash -x #{tempfile.path})
|
74
|
+
|
75
|
+
@command.exec(command)
|
69
76
|
end
|
70
77
|
|
71
78
|
def remove_nfs_mounts(container)
|
data/lib/testlab/version.rb
CHANGED