Sha256: 558843b9e9e8f4946d723d2d0c60f548d8392a1a04c0ff09aa4ea3937dabd905

Contents?: true

Size: 1.52 KB

Versions: 8

Compression:

Stored size: 1.52 KB

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))

t=Time.now

# Load system gems
%w(rubygems logger erb net/ssh open-uri).each do |lib|
  require lib
end

# Add all vendor gems to the load paths
Dir[File.dirname(__FILE__)+"/../vendor/gems/*"].each {|lib| $LOAD_PATH.unshift(File.expand_path("#{lib}/lib")) }

# Load local gems
%w(dslify parenting json daemons).each do |dep|
  require dep
end

# Gratr dependencies
%w(import dot).each do |sublib|
  require "gratr/#{sublib}"
end

module PoolParty
  def self.version
    return @version if @version
    config = YAML.load(File.read(File.expand_path("#{File.dirname(__FILE__)}/../VERSION.yml")))
    @version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
  end
  def self.lib_dir
  File.join(File.dirname(__FILE__), "..")
  end
end

# Require the poolparty error so we can use it ubiquitously
require "poolparty/pool_party_error"

# Core object overloads
%w( object
    module
    string
    integer
    array
    hash
    symbol
    proc
    time).each do |lib|
  require "core/#{lib}"
end

# Mixins
%w(callbacks pinger searchable_paths delayed askable).each do |lib| 
  require "mixins/#{lib}"
end

require "keypair"

# PoolParty core
$LOAD_PATH.unshift(File.dirname(__FILE__)/"poolparty")
%w( default pool_party_log base dsl_base cloud 
    installer monitor
    pool resource plugin ).each do |lib|
  require "poolparty/#{lib}"
end

require 'cloud_providers'

# dependency_resolvers
require "dependency_resolver"

require "provision/bootstrapper"

vputs "PoolParty core loadtime: #{Time.now-t}"

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
auser-poolparty-1.3.0 lib/poolparty.rb
auser-poolparty-1.3.1 lib/poolparty.rb
auser-poolparty-1.3.2 lib/poolparty.rb
auser-poolparty-1.3.3 lib/poolparty.rb
auser-poolparty-1.3.4 lib/poolparty.rb
poolparty-1.3.4 lib/poolparty.rb
poolparty-1.3.3 lib/poolparty.rb
poolparty-1.3.1 lib/poolparty.rb