Class: InfluxdbSetup::Command
- Inherits:
-
Object
- Object
- InfluxdbSetup::Command
- Defined in:
- lib/influxdb_setup/command.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config) ⇒ Command
constructor
A new instance of Command.
- #log(message) ⇒ Object
Constructor Details
#initialize(config) ⇒ Command
Returns a new instance of Command.
5 6 7 |
# File 'lib/influxdb_setup/command.rb', line 5 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
3 4 5 |
# File 'lib/influxdb_setup/command.rb', line 3 def config @config end |
Instance Method Details
#log(message) ⇒ Object
9 10 11 |
# File 'lib/influxdb_setup/command.rb', line 9 def log() @config.logger.info "[InfluxdbSetup] #{}" end |