Module: Birst_Command::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/birst_command/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#config_full_pathObject

Returns the value of attribute config_full_path.



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

def config_full_path
  @config_full_path
end

#optionsObject

Returns the value of attribute options.



8
9
10
# File 'lib/birst_command/config.rb', line 8

def options
  @options
end

Instance Method Details

#read_config(config_full_path = @config_full_path) ⇒ Object



14
15
16
# File 'lib/birst_command/config.rb', line 14

def read_config(config_full_path = @config_full_path)
  @options = @options.merge!(JSON.parse(IO.read(config_full_path), :symbolize_names => true))
end

#set_debugObject



18
19
20
21
22
23
# File 'lib/birst_command/config.rb', line 18

def set_debug
  @options = @options.merge!({
                              :soap_log_level => :debug,
                              :soap_log => true
                            })
end