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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjYxZGM4YTFiOGQ0NjIzZTRjZDQ4ZDEzZDg4OWYyOGJkMTA1MWZhMQ==
4
+ ZTQ1NmM1Y2QwZmZkMDRmYWI1YjdkZDYxYTcwOWJkNGIxNDc3ZTkzNw==
5
5
  data.tar.gz: !binary |-
6
- ODgxMTk0ZTZjYmVlMTQxYmZmMjAyYjYwNjM2NDQwNGU0YjJiMGFhYQ==
6
+ ZjY5MzAyY2M5MDU5YzRjZGY2MmNjNGNhOWUzZjY1MzA0YzA4MTdjNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDBkNmVjNjc3MjI4OTU0MzY1MmMyYTAzMmY0NzU4YzA0YmI3NjBmMDJkYWZl
10
- YmM3MDg3NmZmYWZkNDc2M2JmNTZiOTIxMmZhMDFjNmYyZDlhZmUxMTg0N2M5
11
- MGJjMDgyMTI3NmY3ZTk0YjA4MTY0MGFiZWQyMGUyNDM2ZTE1Nzk=
9
+ YmQzYWJjNjIyODgxYmY5Y2Y0YzcxODg3N2MxYWJmOGViYWQwN2NiYTRhODA2
10
+ YzMzODY1Zjg4OWZiZDlkOWRkMzFiODMzNWQ1OTA2NjIyNTg3ZDVkNzQyODRj
11
+ NTVjMWJjNjVkOGZkZGEyN2JhMjRiZGQ4ZjcwNmU0NWU5NGQzMjU=
12
12
  data.tar.gz: !binary |-
13
- ZDMwYzFjNzUxMmE0MWI1YTRjMGJiZjM0NGU5NzFlMDdmMjQwYzIzMjIwOWUy
14
- YWJmNTUwMzYyOTczMTZhYWUyNjgxZjZhZGJhZjNlYjY3MTBkNzA3ZDIzMTc3
15
- ZGVhZTE5NGEzZjQ3NWY0NTE1OTA3OTdjZjI5MGM0N2Q3NzBjNmE=
13
+ Njg4NmNiNGYyNjUxYWExNDNmOTFmNDEwMDA2YWNkNjMxZTlhZDA2MDgxOGRl
14
+ NDA1MDdhZGU0N2Y4OTMwNjhlMWYwYjE3YTQyNmRhNjkxOTg0ZDEzNmFhYWY5
15
+ ZjRjMjU5ZTJiOTdmYmZlZjcwZTI4ODRhZjBkNjc1ZmFmNTQxNmQ=
@@ -37,14 +37,21 @@ class TestLab
37
37
  private
38
38
 
39
39
  def add_hosts(container)
40
- @command.exec(<<-EOF)
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
@@ -1,6 +1,6 @@
1
1
  class TestLab
2
2
  unless const_defined?(:VERSION)
3
3
  # TestLab Gem Version
4
- VERSION = "1.20.3"
4
+ VERSION = "1.20.4"
5
5
  end
6
6
  end
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.3
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-03 00:00:00.000000000 Z
11
+ date: 2014-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli