Module: Blazemeter::Utils

Includes:
Test::Unit::Assertions
Included in:
Command, Command::Test
Defined in:
lib/blazemeter/utils.rb

Instance Method Summary collapse

Instance Method Details

#shift(key, argv) ⇒ Object


30
31
32
33
34
35
# File 'lib/blazemeter/utils.rb', line 30

def shift key, argv
    val = argv.shift
    assert_not_nil(val, "missing value for #{key}")
    assert_no_match(/^-.*$/, val, "missing value for #{key}")
    val
end