Sha256: 485462a98985a731eeaca9157deb5d78f65e8828b96f642261487f28632fbab8

Contents?: true

Size: 1.15 KB

Versions: 44

Compression:

Stored size: 1.15 KB

Contents

require 'rubygems'
require 'active_support'

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

# 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

44 entries across 44 versions & 9 rubygems

Version Path
crafterm-sprinkle-0.1.7 lib/sprinkle.rb
crafterm-sprinkle-0.1.8 lib/sprinkle.rb
crafterm-sprinkle-0.1.9 lib/sprinkle.rb
crafterm-sprinkle-0.2.0 lib/sprinkle.rb
crafterm-sprinkle-0.2.1 lib/sprinkle.rb
crafterm-sprinkle-0.2.2 lib/sprinkle.rb
crafterm-sprinkle-0.2.3 lib/sprinkle.rb
crafterm-sprinkle-0.2.4 lib/sprinkle.rb
crafterm-sprinkle-0.2.5 lib/sprinkle.rb
crafterm-sprinkle-0.2.6 lib/sprinkle.rb
jsierles-sprinkle-0.1.9 lib/sprinkle.rb
justsee-sprinkle-0.2.4 lib/sprinkle.rb
lachlan-sprinkle-0.0.1 lib/sprinkle.rb
lachlan-sprinkle-0.0.10 lib/sprinkle.rb
lachlan-sprinkle-0.0.11 lib/sprinkle.rb
lachlan-sprinkle-0.0.13 lib/sprinkle.rb
lachlan-sprinkle-0.0.14 lib/sprinkle.rb
lachlan-sprinkle-0.0.15 lib/sprinkle.rb
lachlan-sprinkle-0.0.16 lib/sprinkle.rb
lachlan-sprinkle-0.0.2 lib/sprinkle.rb