#!/usr/bin/env ruby require 'rubygems' require 'thor' require 'json' require 'zip/zip' require 'uri' require 'find' $:.unshift File.join(File.dirname(__FILE__), '.') $:.unshift File.join(File.dirname(__FILE__), '..') require 'lib/rhoconnect/utilities' require 'lib/rhoconnect' require 'utilities/utilities' require 'utilities/redis_runner' include Utilities class Execute < Thor no_tasks { def self.define_task(&block) Execute.class_eval(&block) end } tasks = [ 'generators', 'rhoconnect', 'redis' ] unless windows? tasks << 'dtach' tasks << 'rhoconnect_attach' unless jruby? end tasks << if jruby? then "rhoconnect_war" else "rhoconnect_console" end tasks.each do |dir| Dir.glob(File.join(File.dirname(__FILE__), "#{dir}", "*.rb")) do |file| require file end end end