Skip to content

Instantly share code, notes, and snippets.

@prashanth-sams
Created April 15, 2019 17:46
Show Gist options
  • Save prashanth-sams/0bccca177c9e0bdac1b8dd3f66df3266 to your computer and use it in GitHub Desktop.
Save prashanth-sams/0bccca177c9e0bdac1b8dd3f66df3266 to your computer and use it in GitHub Desktop.
TestRail configuration
class TestrailConfig
attr_reader :config
CONFIG_FILE = './testrail_config.yml'
def initialize
if File.exist? CONFIG_FILE
@config = YAML.load_file(CONFIG_FILE)
raise 'configuration not loaded successfully' if @config.nil?
else
raise 'Missing configuration file'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment