Sha256: 76beb597e70b8e662ddd6a75309bbd19341e054a87bf2f54d685a2470ca1e5df

Contents?: true

Size: 525 Bytes

Versions: 9

Compression:

Stored size: 525 Bytes

Contents

#!/usr/bin/env ruby

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

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

Resources::Base.configure uri_options

if card = Resources::Card.find(execution_options[:card])
  execution = Resources::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

9 entries across 9 versions & 2 rubygems

Version Path
schubert-minglr-1.3.0 bin/mtx
schubert-minglr-1.3.1 bin/mtx
schubert-minglr-1.3.11 bin/mtx
schubert-minglr-1.3.2 bin/mtx
schubert-minglr-1.3.3 bin/mtx
schubert-minglr-1.3.5 bin/mtx
schubert-minglr-1.3.8 bin/mtx
schubert-minglr-1.3.9 bin/mtx
minglr-1.3.11 bin/mtx