Sha256: d683319baf012b40459fee4364e9962131d84213d531a48407506d96cb22a18a

Contents?: true

Size: 1.13 KB

Versions: 5

Compression:

Stored size: 1.13 KB

Contents

require 'rubygems'

# Load required gems
require 'active_support'
require 'open4'
require "ftools"
require "logging"
require "ruby2ruby"

# Use active supports auto load mechanism
ActiveSupport::Dependencies.load_paths << File.dirname(__FILE__)

## Load PoolParty
require "#{File.dirname(__FILE__)}/poolparty/version"

%w(core modules exceptions net).each do |dir|
  Dir[File.dirname(__FILE__) + "/poolparty/#{dir}/**.rb"].each do |file|
    require file
  end
end

Kernel.load_p File.dirname(__FILE__) + "/poolparty/pool"

module PoolParty
  include FileWriter
  
  def logger
    @pool_logger ||= make_new_logger
  end
  
  private
  #:nodoc:#
  def make_new_logger
    FileUtils.mkdir_p Base.pool_logger_location unless ::File.directory?(Base.pool_logger_location)
    Loggable.new
  end
end

class Object
  include PoolParty
  include PoolParty::Pool
  include PoolParty::Cloud
  
  include PoolParty::DefinableResource
end

class Class
  include PoolParty::PluginModel  
end

## Load PoolParty Plugins and package
%w(plugins base_packages).each do |dir|
  Dir[File.dirname(__FILE__) + "/poolparty/#{dir}/**.rb"].each do |file|
    require file
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
auser-poolparty-0.2.5 lib/poolparty.rb
auser-poolparty-0.2.6 lib/poolparty.rb
auser-poolparty-0.2.8 lib/poolparty.rb
auser-poolparty-0.2.9 lib/poolparty.rb
poolparty-0.2.6 lib/poolparty.rb