Sha256: f303f3bdfa52df5b13159930e020fa507928e07e6b1caa5b22fca2011bfaaf52

Contents?: true

Size: 640 Bytes

Versions: 1

Compression:

Stored size: 640 Bytes

Contents

#!/usr/bin/env ruby

require 'commander/import'
require 'sct'

if RUBY_VERSION < '2.0.0'
  abort("Sct requires Ruby 2.0.0 or higher")
end

def self.windows?
  (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
end

if ARGV.include?('-v') || ARGV.include?('--version')
    # This will print out the Sct binary path right above the
    # version number. Very often, users are not aware they have
    # e.g. bundled Sct installed
    puts("Sct installation at path:")
    puts(File.expand_path(__FILE__))
    puts("-----------------------------")
end

Sct::SctCore.take_off(Sct.constants.map(&Sct.method(:const_get)).grep(Class))

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sct-0.1.0 bin/sct