Method: Beaker::Aixer#initialize

Defined in:
lib/beaker/hypervisor/aixer.rb

#initialize(aix_hosts, options) ⇒ Aixer

Returns a new instance of Aixer.



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/beaker/hypervisor/aixer.rb', line 4

def initialize(aix_hosts, options)
  @options = options
  @logger = options[:logger]
  @hosts = aix_hosts
  #aix machines are reverted to known state, not a snapshot
  @fog_file = nil
  if File.exists?( @options[:dot_fog] )
    @fog_file = YAML.load_file( @options[:dot_fog] )
  end
  raise "Cant load #{@options[:dot_fog]} config" unless @fog_file

end