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)


82
83
84
# File 'lib/veewee/provider/core/box/ssh.rb', line 82

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

.platformObject



92
93
94
# File 'lib/veewee/provider/core/box/ssh.rb', line 92

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

.tiger?Boolean

Returns:

  • (Boolean)


78
79
80
# File 'lib/veewee/provider/core/box/ssh.rb', line 78

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