Class: Sshster::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/sshster/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config_path = nil) ⇒ Config

Returns a new instance of Config.



5
6
7
8
# File 'lib/sshster/config.rb', line 5

def initialize(config_path = nil)
  @config_path = config_path || default_file_path
  @options = default_options
end

Instance Attribute Details

#config_pathObject

Returns the value of attribute config_path.



3
4
5
# File 'lib/sshster/config.rb', line 3

def config_path
  @config_path
end

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/sshster/config.rb', line 3

def options
  @options
end

Instance Method Details

#mergeObject



10
11
12
# File 'lib/sshster/config.rb', line 10

def merge
  merge_config(config_path)
end