#!/usr/bin/env ruby if RUBY_VERSION < '2.0.0' abort("pantograph requires Ruby 2.0.0 or higher") end def self.windows? # taken from: https://stackoverflow.com/a/171011/1945875 (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil end require "pantograph/cli_tools_distributor" if Pantograph::CLIToolsDistributor.running_version_command? # This will print out the pantograph binary path right above the # version number. Very often, users are not aware they have # e.g. bundled pantograph installed puts("pantograph installation at path:") puts(File.expand_path(__FILE__)) puts("-----------------------------") end Pantograph::CLIToolsDistributor.take_off