Method: TravisCustomDeploy::Deployment#initialize
- Defined in:
- lib/travis-custom-deploy/deployment.rb
#initialize(transfer_type, options, files) ⇒ Deployment
Initializes a new deployment
remteopts - the options to connect to the remote server files - the files to transfer
12 13 14 15 16 17 18 |
# File 'lib/travis-custom-deploy/deployment.rb', line 12 def initialize(transfer_type, , files) raise ArgumentError, 'transfer type must not be nil' if transfer_type.nil? @files = files check_services(@files[0]) @options = @transfer = get_transfer(transfer_type) end |