Sha256: 1bb6bd6bb6211fc155548d7a11b553a48d8e49ab1d674e5361eca9d52ad4fe23

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

#!/usr/bin/env ruby

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

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

Resources::Base.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

1 entries across 1 versions & 1 rubygems

Version Path
schubert-minglr-1.2.0 bin/mtx