Sha256: 9f6686c0177ff95046a97969ead7d06301fe5c3a85f5df901d4ce5685cb4f8db

Contents?: true

Size: 737 Bytes

Versions: 3

Compression:

Stored size: 737 Bytes

Contents

# The requested command is passed in here as @command
case @command

when "test_ids:rollback"
  if ARGV[0]
    local = TestIds::Git.path_to_local
    TestIds::Git.new(local: local).rollback(ARGV[0])
  else
    puts "You must supply a commit ID to rollback to, e.g. origen test_ids:rollback 456ac3f53"
  end
  exit 0

when "test_ids:clear", "test_ids:repair"
  require "test_ids/commands/#{@command.split(':').last}"
  exit 0

else
  @plugin_commands << <<-EOT
 test_ids:rollback  Rollback the TestIds store to the given commit ID
 test_ids:clear     Clear the assignment database for bins, softbins, numbers, ranges or all for the given configuration database ID
 test_ids:repair    Repair the given database, see -h for more
  EOT

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
test_ids-1.2.3 config/shared_commands.rb
test_ids-1.2.2 config/shared_commands.rb
test_ids-1.2.1 config/shared_commands.rb