Sha256: f3b50fbee91f425f86efdd7b23603445f1ddbaddf19a5050e621119379924cc9

Contents?: true

Size: 1.24 KB

Versions: 3

Compression:

Stored size: 1.24 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 = ['.','..']
  LAUNCH_PATH = FileUtils.pwd
  
  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

3 entries across 3 versions & 1 rubygems

Version Path
jumpstart-0.1.19 lib/jumpstart.rb
jumpstart-0.1.17 lib/jumpstart.rb
jumpstart-0.1.16 lib/jumpstart.rb