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