Sha256: dfec841734b317abc3041cde1353df89d058e550bf0d4e99aa42c62663b61d67

Contents?: true

Size: 503 Bytes

Versions: 2

Compression:

Stored size: 503 Bytes

Contents

#!/usr/bin/env ruby

require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'minglr'))

uri_options, execution_options = MinglrOptionsParser.parse(ARGV, :card, :transition)

MingleResource.configure uri_options

if card = Card.find(execution_options[:card])
  execution = TransitionExecution.create(execution_options)
  raise "Transition aborted. Errors: #{execution.errors.full_messages}" if execution.errors.any?
else
  raise "Card '#{execution_options[:card]}' cannot be found."
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stephenchu-minglr-0.1.0.0 bin/mtx
stephenchu-minglr-0.1.0.1 bin/mtx