Method: Specinfra::Backend::Docker#send_file
- Defined in:
- lib/specinfra/backend/docker.rb
#send_file(from, to) ⇒ Object
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/specinfra/backend/docker.rb', line 42 def send_file(from, to) if @base_image.nil? fail 'Cannot call send_file without docker_image.' end @images << commit_container if @container @images << current_image.insert_local('localPath' => from, 'outputPath' => to) cleanup_container create_and_start_container end |