Module: Hammerhead
- Defined in:
- lib/hammerhead.rb,
lib/hammerhead/cli.rb,
lib/hammerhead/utils.rb,
lib/hammerhead/command.rb,
lib/hammerhead/version.rb,
lib/hammerhead/configuration.rb,
lib/hammerhead/commands/status.rb,
lib/hammerhead/commands/clients.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Commands, Utils Classes: CLI, Command, Configuration, Error
Constant Summary collapse
- VERSION =
'0.1.3'
Class Method Summary collapse
-
.configuration ⇒ Object
Returns a Hammerhead::Configuration instance.
-
.configure {|configuration| ... } ⇒ Object
Provides an alternate way to access the
configuration
. -
.logger ⇒ Object
Returns a TTY::Logger instance.
Class Method Details
.configuration ⇒ Object
Returns a Hammerhead::Configuration instance
31 32 33 |
# File 'lib/hammerhead.rb', line 31 def configuration @configuration ||= Hammerhead::Configuration.new end |
.configure {|configuration| ... } ⇒ Object
Provides an alternate way to access the configuration
44 45 46 |
# File 'lib/hammerhead.rb', line 44 def configure yield configuration end |
.logger ⇒ Object
Returns a TTY::Logger instance
38 39 40 |
# File 'lib/hammerhead.rb', line 38 def logger @logger ||= TTY::Logger.new end |