Class: KTools::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ktools/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



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_fileObject

Returns the value of attribute config_file.



5
6
7
# File 'lib/ktools/configuration.rb', line 5

def config_file
  @config_file
end

#kpathObject

Returns the value of attribute kpath.



5
6
7
# File 'lib/ktools/configuration.rb', line 5

def kpath
  @kpath
end

#kube_pathObject

Returns the value of attribute kube_path.



5
6
7
# File 'lib/ktools/configuration.rb', line 5

def kube_path
  @kube_path
end