class TestRail::TestRunParameters

Attributes

command[RW]
environment[RW]
venture[RW]

Public Class Methods

new(env=nil) click to toggle source

Checking of correct naming of created test run and return parameters for running test run

# File lib/test_rail_integration/generator/test_run_parameters.rb, line 15
def initialize(env=nil)
  @venture = ""
  @environment = ""
  if env
    if env[0]
      @venture = env[0] if env[0].match(/(#{VENTURE_REGEX})/)
    end
    if env[1]
      @environment = env[1] if env[1].match(/(#{ENVIRONMENT_REGEX})/)
    end
  end
  @command = EXEC_COMMAND
end