specinfra 2.43.10 → 2.43.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62bfa02b50036e827d74743c349176d76ed6725e
4
- data.tar.gz: 8ea8b58c280db4e152b8108aceac3b04467ff6fe
3
+ metadata.gz: 25d7a37781f4679ffda169df36604e3414b300b5
4
+ data.tar.gz: 9d244072c2ed7ad846a4afc756dc31e4b7512a19
5
5
  SHA512:
6
- metadata.gz: d189d778e9e427d5f44b28f965922888ac6ab270dc583ad158d9e2ca3c1c18fac0aa64ba4873c4cbe6fd907852c78f533beadaa6019ac2694452b9ae97e47723
7
- data.tar.gz: 3ad65e5c32ae630ba1e65911456a8b762692fa4252b5da47c05e9f7d3532faaf082148b894f8065947bca25636803cc1f59cf9eb6386a0735ef034cc043c36c9
6
+ metadata.gz: 4fb6e2d3e77b0f04bfef7fa26376281bd7adabf03bdde31f0f5897b53f69121f2c6198bff1f492654f4a12ff5e5b36fbe47186b0894429ca17c5ee4712d23608
7
+ data.tar.gz: 48d121d37b9ef6c46cf7807ec3341da4479e976c52a02ff92cb58962c3962c84fc3ed2ad7629d8b868538c747fb1f2df186a5f9b8b48e3234d292f91bc414a06
@@ -28,7 +28,7 @@ module Specinfra
28
28
  def run_command(cmd, opts={})
29
29
  cmd = build_command(cmd)
30
30
  cmd = add_pre_command(cmd)
31
- docker_run!(cmd)
31
+ docker_run!(cmd, opts)
32
32
  end
33
33
 
34
34
  def build_command(cmd)
@@ -44,6 +44,7 @@ module Specinfra
44
44
  fail 'Cannot call send_file without docker_image.'
45
45
  end
46
46
 
47
+ @images << commit_container if @container
47
48
  @images << current_image.insert_local('localPath' => from, 'outputPath' => to)
48
49
  cleanup_container
49
50
  create_and_start_container
@@ -87,7 +88,7 @@ module Specinfra
87
88
  end
88
89
 
89
90
  def docker_run!(cmd, opts={})
90
- stdout, stderr, status = @container.exec(['/bin/sh', '-c', cmd])
91
+ stdout, stderr, status = @container.exec(['/bin/sh', '-c', cmd], opts)
91
92
 
92
93
  CommandResult.new :stdout => stdout.join, :stderr => stderr.join,
93
94
  :exit_status => status
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.43.10"
2
+ VERSION = "2.43.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.43.10
4
+ version: 2.43.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: 2015-09-29 00:00:00.000000000 Z
11
+ date: 2015-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp
@@ -629,4 +629,3 @@ test_files:
629
629
  - spec/host_inventory/openbsd/filesystem_spec.rb
630
630
  - spec/host_inventory/solaris/filesystem_spec.rb
631
631
  - spec/spec_helper.rb
632
- has_rdoc: