Class: KTools::Configuration
- Inherits:
-
Object
- Object
- KTools::Configuration
- Defined in:
- lib/ktools/configuration.rb
Instance Attribute Summary collapse
-
#config_file ⇒ Object
Returns the value of attribute config_file.
-
#kpath ⇒ Object
Returns the value of attribute kpath.
-
#kube_path ⇒ Object
Returns the value of attribute kube_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
7 8 9 10 11 |
# File 'lib/ktools/configuration.rb', line 7 def initialize @kpath = "#{Dir.home}/.ktools" @kube_path = "#{Dir.home}/.kube" @config_file = "#{@kpath}/config.json" end |
Instance Attribute Details
#config_file ⇒ Object
Returns the value of attribute config_file.
5 6 7 |
# File 'lib/ktools/configuration.rb', line 5 def config_file @config_file end |
#kpath ⇒ Object
Returns the value of attribute kpath.
5 6 7 |
# File 'lib/ktools/configuration.rb', line 5 def kpath @kpath end |
#kube_path ⇒ Object
Returns the value of attribute kube_path.
5 6 7 |
# File 'lib/ktools/configuration.rb', line 5 def kube_path @kube_path end |