Class: AsProject::OSXRemoteFileTask
- Inherits:
-
AbstractRemoteFileTask
- Object
- AbstractRemoteFileTask
- AsProject::OSXRemoteFileTask
- 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, #fetch, #get_remote_file, #initialize, #is_dmg?, #is_exe?, #is_gzip?, #is_targz?, #is_zip?, #make_downloaded_dir, #remote_file_dir, #remote_location, #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
333 334 335 336 337 338 339 |
# File 'lib/tasks/remote_file_task.rb', line 333 def execute(params) target = File.basename(extracted_file_path) if(!Logger.debug) puts("#{target} #{params}") end system("#{clean_path(extracted_file_path)} #{params}") end |
#full_mounted_path ⇒ Object
341 342 343 |
# File 'lib/tasks/remote_file_task.rb', line 341 def full_mounted_path return '/Volumes/' + mounted_path end |