Module: Vixen

Defined in:
lib/vixen.rb

Defined Under Namespace

Modules: Bridge, Constants, Model Classes: CommandLine

Constant Summary collapse

@@logger =
nil

Class Method Summary collapse

Class Method Details

.connect(host_type, hostname, port, username, password, &block) ⇒ Object



11
12
13
14
# File 'lib/vixen.rb', line 11

def self.connect(host_type, hostname, port, username, password, &block)
  handle = Vixen::Bridge.connect(host_type, hostname, port, username, password, &block)
  Vixen::Model::Host.new(handle)
end

.local_connect(login = nil, password = nil, &block) ⇒ Object



7
8
9
# File 'lib/vixen.rb', line 7

def self.local_connect( = nil, password = nil, &block)
  connect Vixen::Constants::VixServiceProvider[:vmware_workstation], nil, 0, , password, &block
end

.loggerObject



16
17
18
19
20
21
# File 'lib/vixen.rb', line 16

def self.logger
  return @@logger unless @@logger.nil?
  require 'logger'
  @@logger ||= Logger.new STDOUT
  @@logger.level = Logger::WARN
end

.logger=(value) ⇒ Object



23
24
25
# File 'lib/vixen.rb', line 23

def self.logger=(value)
  @@logger = value
end