Class: PuppetLibrary::PuppetLibrary
- Inherits:
-
Object
- Object
- PuppetLibrary::PuppetLibrary
- Defined in:
- lib/puppet_library/puppet_library.rb
Instance Method Summary collapse
- #go(args) ⇒ Object
-
#initialize(log = STDERR) ⇒ PuppetLibrary
constructor
A new instance of PuppetLibrary.
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) = (args) server = build_server() announce_server_start() start_server(server, ) rescue ExpectedError => error @log.puts "Error: #{error}" end |