Sha256: c798808d8fe9bb5418cb966316b23da8be077e2542066b5093cee8ba9124b493

Contents?: true

Size: 606 Bytes

Versions: 2

Compression:

Stored size: 606 Bytes

Contents

module VagrantPlugins
  module DockerComposeProvisioner
    module Cap
      module Linux
        module DockerComposeUpload
          def self.docker_compose_upload(machine, config, local_tmp_path)
            comm = machine.communicate

            remote_tmp_path = ""
            comm.execute("mktemp") do |type, data|
              if type == :stdout
                remote_tmp_path << data
              end
            end
            remote_tmp_path.strip!

            comm.upload(local_tmp_path, remote_tmp_path)

            remote_tmp_path
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-docker-compose-1.5.1 lib/vagrant-docker-compose/cap/linux/docker_compose_upload.rb
vagrant-docker-compose-1.5.0 lib/vagrant-docker-compose/cap/linux/docker_compose_upload.rb