Class: Launchy::Detect::HostOs
- Inherits:
-
Object
- Object
- Launchy::Detect::HostOs
- Defined in:
- lib/launchy/detect/host_os.rb
Instance Attribute Summary collapse
-
#host_os ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute host_os.
Instance Method Summary collapse
- #default_host_os ⇒ Object
-
#initialize(host_os = nil) ⇒ HostOs
constructor
A new instance of HostOs.
- #override_host_os ⇒ Object
Constructor Details
#initialize(host_os = nil) ⇒ HostOs
Returns a new instance of HostOs.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/launchy/detect/host_os.rb', line 9 def initialize( host_os = nil ) @host_os = host_os if not @host_os then if @host_os = override_host_os then Launchy.log "Using LAUNCHY_HOST_OS override value of '#{Launchy.host_os}'" else @host_os = default_host_os end end end |
Instance Attribute Details
#host_os ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute host_os.
6 7 8 |
# File 'lib/launchy/detect/host_os.rb', line 6 def host_os @host_os end |