Sha256: 53a4f81174978e86103af10e607cc2ebc39e89e1c1ef062bb7ff42d229fa674a

Contents?: true

Size: 729 Bytes

Versions: 8

Compression:

Stored size: 729 Bytes

Contents

module Veewee
  module Provider
    module  Core
      module BoxCommand

        def copy_to_box(localfile,remotefile,options={})
          raise Veewee::Error,"Box is not running" unless self.running?
          if
            definition.winrm_user && definition.winrm_password # prefer winrm
          then
            self.wincp(localfile,remotefile,options)
          elsif
            definition.os_type_id =~ /^Windows/
          then
            raise "Trying to transfer #{localfile} to windows machine without 'winrm_user' and 'winrm_password' set in definition."
          else
            self.scp(localfile,remotefile,options)
          end
        end
      end # Module
    end # Module
  end # Module
end # Module

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
veewee-0.5.0.alpha4 lib/veewee/provider/core/box/copy.rb
veewee-0.5.0.alpha3 lib/veewee/provider/core/box/copy.rb
veewee-0.5.0.alpha2 lib/veewee/provider/core/box/copy.rb
veewee-0.5.0.alpha1 lib/veewee/provider/core/box/copy.rb
veewee-0.4.5.1 lib/veewee/provider/core/box/copy.rb
veewee-0.4.5 lib/veewee/provider/core/box/copy.rb
veewee-0.4.5.pre1 lib/veewee/provider/core/box/copy.rb
veewee-0.4.4 lib/veewee/provider/core/box/copy.rb