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)


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

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

.platformObject



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

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

.tiger?Boolean

Returns:

  • (Boolean)


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

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