Sha256: 6b4ae35bdd9d3c7ef5f359b4845e92308b856885d8dd9a2ab4ae0f9f75ef6a4d

Contents?: true

Size: 1.33 KB

Versions: 8

Compression:

Stored size: 1.33 KB

Contents

require 'rubygems'
require 'active_support'

# Use active supports auto load mechanism
require 'active_support/version'
if ActiveSupport::VERSION::MAJOR > 2
  require 'active_support/dependencies'
  ActiveSupport::Dependencies.autoload_paths << File.dirname(__FILE__)
else
  ActiveSupport::Dependencies.load_paths << File.dirname(__FILE__)
end

# Configure active support to log auto-loading of dependencies
#ActiveSupport::Dependencies::RAILS_DEFAULT_LOGGER = Logger.new($stdout)
#ActiveSupport::Dependencies.log_activity = true

# Load up extensions to existing classes
Dir[File.dirname(__FILE__) + '/sprinkle/extensions/*.rb'].each { |e| require e }
# Load up the verifiers so they can register themselves
Dir[File.dirname(__FILE__) + '/sprinkle/verifiers/*.rb'].each { |e| require e }

# Configuration options
module Sprinkle
  OPTIONS = { :testing => false, :verbose => false, :force => false }
end

# Object is extended to give the package, policy, and deployment methods. To
# read about each method, see the corresponding module which is included.
#--
# Define a logging target and understand packages, policies and deployment DSL
#++
class Object
  include Sprinkle::Package, Sprinkle::Policy, Sprinkle::Deployment

  def logger # :nodoc:
    @@__log__ ||= ActiveSupport::BufferedLogger.new($stdout, ActiveSupport::BufferedLogger::Severity::INFO)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sprinkle-0.4.2 lib/sprinkle.rb
sprinkle-0.4.1 lib/sprinkle.rb
sprinkle-0.4.0 lib/sprinkle.rb
sprinkle-0.3.6 lib/sprinkle.rb
sprinkle-0.3.5 lib/sprinkle.rb
sprinkle-0.3.4 lib/sprinkle.rb
sprinkle-0.3.3 lib/sprinkle.rb
sprinkle-0.3.2 lib/sprinkle.rb