Class: Veewee::Provider::Core::BoxCommand::Platform

Inherits:
Object
  • Object
show all
Defined in:
lib/veewee/provider/core/box/ssh.rb

Overview

Shameless copy of vagrant

Class Method Summary collapse

Class Method Details

.leopard?Boolean

Returns:

  • (Boolean)


75
76
77
# File 'lib/veewee/provider/core/box/ssh.rb', line 75

def leopard?
  platform.include?("darwin9")
end

.platformObject



85
86
87
# File 'lib/veewee/provider/core/box/ssh.rb', line 85

def platform
  RbConfig::CONFIG["host_os"].downcase
end

.tiger?Boolean

Returns:

  • (Boolean)


71
72
73
# File 'lib/veewee/provider/core/box/ssh.rb', line 71

def tiger?
  platform.include?("darwin8")
end