Module: Fleetctl

Extended by:
Forwardable
Defined in:
lib/fleetctl.rb,
lib/fleetctl/command.rb,
lib/fleetctl/options.rb,
lib/fleetctl/version.rb,
lib/fleetctl/runner/ssh.rb,
lib/fleetctl/runner/shell.rb,
lib/fleetctl/table_parser.rb,
lib/fleetctl/runner/runner.rb,
lib/fleetctl/remote_tempfile.rb

Defined Under Namespace

Modules: Runner Classes: Command, Options, RemoteTempfile, TableParser

Constant Summary collapse

VERSION =
'0.1.4'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.optionsObject (readonly)

Returns the value of attribute options.



26
27
28
# File 'lib/fleetctl.rb', line 26

def options
  @options
end

Class Method Details

.config(cfg) ⇒ Object

set global configuration options



39
40
41
# File 'lib/fleetctl.rb', line 39

def config(cfg)
  @options = Options.new(cfg)
end

.instanceObject

get the global singleton controller



34
35
36
# File 'lib/fleetctl.rb', line 34

def instance
  @instance ||= Fleet::Controller.new
end

.loggerObject

set the logger for fleet to use



44
45
46
# File 'lib/fleetctl.rb', line 44

def logger
  options.logger
end

.new(*args) ⇒ Object

use if you might need more than one fleet



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

def new(*args)
  Fleet::Controller.new(*args)
end