Class: AsProject::CygwinUser
Instance Method Summary collapse
-
#flash_player_log ⇒ Object
end.
- #remote_file_task(name, task) ⇒ Object
- #win_flash_player_log ⇒ Object
Methods inherited from WinUser
#asproject_home, #flash_player_home, #flash_player_path, #home, #initialize, #library
Methods inherited from User
#asproject_home, #asproject_player_trust, #downloads, #file_exists?, #flash_player_config, #flash_player_config_content, #flash_player_home, #flash_player_path, #flash_player_trust, #get_or_create, #get_player_url, #home, #initialize, #library
Constructor Details
This class inherits a constructor from AsProject::WinUser
Instance Method Details
#flash_player_log ⇒ Object
end
471 472 473 474 475 |
# File 'lib/path_finder.rb', line 471 def flash_player_log drive = "/cygdrive/#{ENV['HOMEDRIVE'].downcase.gsub(':', '')}" home = ENV['HOMEPATH'].split('\\').join('/') return File.join(drive, home, 'Application Data', 'Macromedia', 'Flash Player', 'Logs', 'flashlog.txt') end |
#remote_file_task(name, task) ⇒ Object
481 482 483 484 485 486 487 488 489 |
# File 'lib/path_finder.rb', line 481 def remote_file_task(name, task) return CygwinRemoteFileTask.new(name, self) do |t| if(task.win_url.nil?) raise UsageError.new("There was a problem finding a target for #{task.name}, it doesn't appear as if this task was expected to run on your system...") end t.url = task.win_url t.extracted_file = task.win_extracted_file end end |
#win_flash_player_log ⇒ Object
477 478 479 |
# File 'lib/path_finder.rb', line 477 def win_flash_player_log return File.join("#{ENV['HOMEDRIVE']}#{ENV['HOMEPATH']}", 'Application Data', 'Macromedia', 'Flash Player', 'Logs', 'flashlog.txt') end |