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
-
.options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
-
.config(cfg) ⇒ Object
set global configuration options.
-
.instance ⇒ Object
get the global singleton controller.
-
.logger ⇒ Object
set the logger for fleet to use.
-
.new(*args) ⇒ Object
use if you might need more than one fleet.
Class Attribute Details
.options ⇒ Object (readonly)
Returns the value of attribute options.
26 27 28 |
# File 'lib/fleetctl.rb', line 26 def @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 |
.instance ⇒ Object
get the global singleton controller
34 35 36 |
# File 'lib/fleetctl.rb', line 34 def instance @instance ||= Fleet::Controller.new end |
.logger ⇒ Object
set the logger for fleet to use
44 45 46 |
# File 'lib/fleetctl.rb', line 44 def logger .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 |