Sha256: 636987f06c3c5aad86ac0964df41de6ca6d5084f61a904a127734722eb2210f5

Contents?: true

Size: 689 Bytes

Versions: 7

Compression:

Stored size: 689 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 or all
 test_ids:repair    Repair the given database, see -h for more
  EOT

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
test_ids-1.2.0 config/shared_commands.rb
test_ids-1.1.2 config/shared_commands.rb
test_ids-1.1.1 config/shared_commands.rb
test_ids-1.1.0 config/shared_commands.rb
test_ids-1.0.0 config/shared_commands.rb
test_ids-0.8.2 config/shared_commands.rb
test_ids-0.8.1 config/shared_commands.rb