Sha256: 120ad57577130ff3f046a574a480bf04be8d269aec39d92a1ab511c619d15656

Contents?: true

Size: 614 Bytes

Versions: 3

Compression:

Stored size: 614 Bytes

Contents

#!/usr/bin/env ruby

Signal.trap("INT") { exit 1 }

#---

require 'corl'

# Set version info

module Nucleon; module Util; module CLI
class Parser
  def version
    version = CORL.VERSION
    "CORL: #{version}  (Apache License, Version 2.0)  --  https://github.com/coralnexus/corl/tree/v#{version}"  
  end
end
end; end; end

# Execute

internal_exec = ( CORL.admin? || ARGV.include?('--version') || ARGV.include?('-h') || ARGV.include?('--help') )

if ! internal_exec && nucleon_locate(:vagrant)
  system(*[ 'vagrant', 'corl', ARGV ].flatten)
  exit($?.exitstatus)
else
  exit(CORL.executable(ARGV, :corl))  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
corl-0.5.2 bin/corl
corl-0.5.1 bin/corl
corl-0.5.0 bin/corl