Method: Fulmar::Shell#initialize

Defined in:
lib/fulmar/shell.rb

#initialize(path = '.', host = 'localhost') ⇒ Shell

Returns a new instance of Shell.



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/fulmar/shell.rb', line 24

def initialize(path = '.', host = 'localhost')
  @host = host.nil? ? 'no_hostname_set' : host
  @path = (path.nil? || path.empty?) ? '.' : path
  @path = File.expand_path(@path) if local?
  reset_output
  @debug = false
  @quiet = true
  @strict = false
  @interactive = false
  @clean_environment = [] # list of things to clean from environment variables
end