Class: AsProject::OSXRemoteFileTask
- Inherits:
-
AbstractRemoteFileTask
- Object
- Rake::TaskLib
- RemoteFileLoader
- 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, #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
207 208 209 210 211 212 213 |
# File 'lib/tasks/remote_file_task.rb', line 207 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
215 216 217 |
# File 'lib/tasks/remote_file_task.rb', line 215 def full_mounted_path return File.join('/Volumes', mounted_path) end |