Sha256: 152985d98665a3f03a4b581f590d55c69309528dc35af7ae7586a5401a0fc8b1

Contents?: true

Size: 589 Bytes

Versions: 1

Compression:

Stored size: 589 Bytes

Contents

#!/usr/bin/env ruby

lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
$LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)


# Ignore args for any commands following tane exec
# => ["exec", "rails", "s", "-p", "3001"]  becomes  ["exec", "rails s -p 3001"]
args = (i = ARGV.index 'exec') ? ARGV[0..i] << ARGV[i+1..-1].join(' ') : ARGV.dup
ARGV.clear

require 'tane'
options = Tane::Parser.parse(args)

command = args.shift.strip rescue 'help'
command = 'help' if command == ''

klass = Tane::Commands.const_get command.capitalize
klass.fire(options, args)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tane-0.0.5 bin/tane