Class: Sprout::System::OSXSystem
- Inherits:
-
UnixSystem
- Object
- BaseSystem
- UnixSystem
- Sprout::System::OSXSystem
- Defined in:
- lib/sprout/system/osx_system.rb
Constant Summary
- LIBRARY =
'Library'
Instance Method Summary (collapse)
Methods inherited from UnixSystem
#attempt_to_repair_executable, #clean_path, #execute, #repair_executable, #should_repair_executable
Methods inherited from BaseSystem
#alt_separator?, #application_home, #clean_path, #env_home, #env_homedrive, #env_homedrive_and_homepath, #env_homepath, #env_userprofile, #execute, #execute_silent, #execute_thread, #find_home, #get_and_execute_process_runner, #get_process_runner, #home, #home=, #tilde_home, #worst_case_home
Instance Method Details
- (Boolean) can_execute?(platform)
20 21 22 |
# File 'lib/sprout/system/osx_system.rb', line 20 def can_execute? platform [:mac, :osx, :macosx, :darwin].include?(platform) || super end |
- (Object) format_application_name(name)
16 17 18 |
# File 'lib/sprout/system/osx_system.rb', line 16 def format_application_name(name) return name.capitalize end |
- (Object) library
7 8 9 10 11 12 13 14 |
# File 'lib/sprout/system/osx_system.rb', line 7 def library lib = File.join(home, LIBRARY) if(File.exists?(lib)) return lib else return super end end |