Sha256: ec0b43a12147b178646a5c5eefdce704e063f5fcc9e75d5430b1249f328a0122

Contents?: true

Size: 607 Bytes

Versions: 1

Compression:

Stored size: 607 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"
  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 or all
  EOT

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
test_ids-0.8.0 config/shared_commands.rb