Class: GrokCLI::Docker::Configuration
- Inherits:
-
Object
- Object
- GrokCLI::Docker::Configuration
- Defined in:
- lib/grok_cli/docker.rb
Instance Attribute Summary collapse
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
-
#machine_name ⇒ Object
readonly
Returns the value of attribute machine_name.
Instance Method Summary collapse
-
#initialize(config = YAML.load_file('.grok-cli.yml')) ⇒ Configuration
constructor
A new instance of Configuration.
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
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
7 8 9 |
# File 'lib/grok_cli/docker.rb', line 7 def hostname @hostname end |
#machine_name ⇒ Object (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 |