lib/hastie2/server_reader.rb
# Tries to access users config file
# loads contents into the options hash
Tries to access users config file
loads contents into the options hash
Tries to access users config file loads contents into the options hash
def read_config_file
      say_status "note", "config file: #{self.config_file}"
      if !File.exists? self.config_file
        say "No config file found. Please create #{self.config_file}"
        exit(1)
      end
      config = ConfigFile.load(self.config_file)
      self.options = config.merge(self.options)
    end
def read_config_file say_status "note" , "config file: #{self.config_file}" if ! File . exists? self . config_file say "No config file found. Please create #{self.config_file}" exit ( 1 ) end config = ConfigFile . load ( self . config_file ) self . options = config . merge ( self . options ) end
Tries to access users config file
loads contents into the options hash
Tries to access users config file loads contents into the options hash