Class: GrokCLI::Docker::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/grok_cli/docker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config = YAML.load_file('.grok-cli.yml')) ⇒ Configuration

Returns a new instance of Configuration.



9
10
11
12
# File 'lib/grok_cli/docker.rb', line 9

def initialize(config = YAML.load_file('.grok-cli.yml'))
  @machine_name = config.fetch('machine_name')
  @hostname = config.fetch('hostname')
end

Instance Attribute Details

#hostnameObject (readonly)

Returns the value of attribute hostname.



7
8
9
# File 'lib/grok_cli/docker.rb', line 7

def hostname
  @hostname
end

#machine_nameObject (readonly)

Returns the value of attribute machine_name.



7
8
9
# File 'lib/grok_cli/docker.rb', line 7

def machine_name
  @machine_name
end