Sha256: bcb01cb0b3c40e310dc88298ff81eaa7af6e9720d3d3b88250d1c4818dd4f25d

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

require 'rubygems'
require 'bundler'
require 'find'
require 'fileutils'
require 'yaml'
require 'rbconfig'

# Sets up coloured terminal output in windows
if RbConfig::CONFIG['host_os'] =~ /mswin|windows|cygwin|mingw32/
  Bundler.setup(:windows)
  begin
    require 'Win32/Console/ANSI'
  rescue LoadError
    raise 'You must gem install win32console to use colored output on Windows'
  end
end

module JumpStart
  
  ROOT_PATH = File.expand_path(File.join(File.dirname(__FILE__), '..'))
  LIB_PATH = File.expand_path(File.dirname(__FILE__))
  CONFIG_PATH = File.expand_path(File.join(File.dirname(__FILE__), '../config'))
  IGNORE_DIRS = ['.','..']
  
  require 'jumpstart/setup'
  require 'jumpstart/base'
  require 'jumpstart/filetools'
  require 'jumpstart/stringtools'
  
  # Looks up the current version of JumpStart
  def self.version 
    "#{JumpStart::Setup.version_major}.#{JumpStart::Setup.version_minor}.#{JumpStart::Setup.version_patch}"
  end
  
end

# Included as a module so that extension methods will be better defined in class/module chain.
FileUtils.extend JumpStart::FileTools

# Included as a module so that extension methods will be better defined in class/module chain.
class String
  include JumpStart::StringTools
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jumpstart-0.1.15 lib/jumpstart.rb