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

+ (Boolean) leopard?

Returns:

  • (Boolean)


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

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

+ (Object) platform



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

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

+ (Boolean) tiger?

Returns:

  • (Boolean)


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

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