Class: PuppetLibrary::PuppetLibrary

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet_library/puppet_library.rb

Instance Method Summary collapse

Constructor Details

#initialize(log = STDERR) ⇒ PuppetLibrary

Returns a new instance of PuppetLibrary.



29
30
31
# File 'lib/puppet_library/puppet_library.rb', line 29

def initialize(log = STDERR)
    @log = log
end

Instance Method Details

#go(args) ⇒ Object



33
34
35
36
37
38
39
40
41
# File 'lib/puppet_library/puppet_library.rb', line 33

def go(args)
    options = parse_options(args)
    server = build_server(options)
    announce_server_start(options)

    start_server(server, options)
rescue ExpectedError => error
    @log.puts "Error: #{error}"
end