Class: InfluxdbSetup::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/influxdb_setup/command.rb

Direct Known Subclasses

CreateDb, CreateUser, LoadQueries, MarkDeploy

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (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(message)
  @config.logger.info "[InfluxdbSetup] #{message}"
end