Class: AsProject::CygwinRemoteFileTask

Inherits:
AbstractRemoteFileTask show all
Defined in:
lib/tasks/remote_file_task.rb

Instance Attribute Summary

Attributes inherited from AbstractRemoteFileTask

#extracted_file, #mounted_path, #name, #url

Instance Method Summary collapse

Methods inherited from AbstractRemoteFileTask

#clean_path, #define, #downloaded_file_path, #extracted_file_path, #get_remote_file, #initialize, #make_downloaded_dir, #remote_file_dir, #remote_location

Methods inherited from RemoteFileLoader

#fetch, #is_dmg?, #is_exe?, #is_gzip?, #is_swc?, #is_targz?, #is_zip?, #unpack_dmg, #unpack_downloaded_file, #unpack_targz, #unpack_zip

Constructor Details

This class inherits a constructor from AsProject::AbstractRemoteFileTask

Instance Method Details

#execute(params) ⇒ Object



196
197
198
199
200
201
202
# File 'lib/tasks/remote_file_task.rb', line 196

def execute(params)
  target = File.basename(extracted_file_path)
  if(!Logger.debug)
    puts("#{target} #{params}")
  end
  system(%{#{clean_path(extracted_file_path)} #{params}})
end