#!/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 'lib/rhoconnect/console/rhoconnect_api' include Utilities TASK_DIRS = ['generators', 'commands', 'utilities'] class Execute < Thor # Methods no_tasks { def self.define_task(&block) Execute.class_eval &block end } # Require all tasks defined in the tasks directories TASK_DIRS.each do |dir| Find.find("#{File.expand_path(File.dirname(__FILE__))}/#{dir}") do |path| if !File.directory? path and File.extname(path) == '.rb' require path end #if end #do end #do end #Execute