Method: Puppetfactory::Cli#initialize

Defined in:
lib/puppetfactory/cli.rb

#initialize(options = {}) ⇒ Cli

Returns a new instance of Cli.



8
9
10
11
12
13
14
15
16
17
# File 'lib/puppetfactory/cli.rb', line 8

def initialize(options = {})
  if options[:server]
    @server = options[:server]
  else
    @server = 'localhost'
  end
  @server = "http://#{@server}:#{options[:port]}" unless @server.start_with? 'http'
  @master = options[:master]
  @debug  = options[:debug]
end