Method: Beaker::Host#initialize

Defined in:
lib/beaker/host.rb

#initialize(name, host_hash, options) ⇒ Host

Returns a new instance of Host.



70
71
72
73
74
75
76
77
# File 'lib/beaker/host.rb', line 70

def initialize name, host_hash, options
  @logger = host_hash[:logger] || options[:logger]
  @name, @host_hash, @options = name.to_s, host_hash.dup, options.dup
  @host_hash['packaging_platform'] ||= @host_hash['platform']

  @host_hash = self.platform_defaults.merge(@host_hash)
  pkg_initialize
end