Created
April 15, 2019 17:46
-
-
Save prashanth-sams/0bccca177c9e0bdac1b8dd3f66df3266 to your computer and use it in GitHub Desktop.
TestRail configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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