Sha256: 3e6ad2390a734d1f9a1c8ddbbe9a13575eb5668895ee12856dab0c321b79ae6c

Contents?: true

Size: 1.53 KB

Versions: 18

Compression:

Stored size: 1.53 KB

Contents

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

t=Time.now

# Load system gems
%w(rubygems logger erb 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 net/ssh).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
    file
  ).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

18 entries across 18 versions & 3 rubygems

Version Path
auser-poolparty-1.3.10 lib/poolparty.rb
auser-poolparty-1.3.11 lib/poolparty.rb
auser-poolparty-1.3.12 lib/poolparty.rb
auser-poolparty-1.3.13 lib/poolparty.rb
auser-poolparty-1.3.14 lib/poolparty.rb
auser-poolparty-1.3.15 lib/poolparty.rb
auser-poolparty-1.3.16 lib/poolparty.rb
auser-poolparty-1.3.17 lib/poolparty.rb
auser-poolparty-1.3.6 lib/poolparty.rb
auser-poolparty-1.3.7 lib/poolparty.rb
auser-poolparty-1.3.8 lib/poolparty.rb
fairchild-poolparty-1.3.17 lib/poolparty.rb
poolparty-1.3.15 lib/poolparty.rb
poolparty-1.3.14 lib/poolparty.rb
poolparty-1.3.13 lib/poolparty.rb
poolparty-1.3.8 lib/poolparty.rb
poolparty-1.3.7 lib/poolparty.rb
poolparty-1.3.6 lib/poolparty.rb