Sha256: bf7bf43902123045233c4aca38bdc57378ed9f2aa7ec29a5ba3ecdf37ae90d2a

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

#!/usr/bin/env ruby
require 'pathname'

# Abort beautifully with ctrl+c.
Signal.trap(:INT) { abort "\nAborting." }

# Load the main lib and invoke CLI.
if ENV['RAILS_ENV'] == 'development'
  require './lib/sunzi'
else
  source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path

  $LOAD_PATH << source_path
  require 'sunzi'
end

if ['-v', '--version'].include? ARGV[0]
  puts Sunzi::VERSION
  exit 0
end

Sunzi::Cli.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sunzi-rails-0.2.6 bin/sunzi-cap