Sha256: 74f9055c1f68d9c4304a3e6d5a9d2c8b682b2ebe6724884a22ed4f0a55200218
Contents?: true
Size: 1.64 KB
Versions: 4
Compression:
Stored size: 1.64 KB
Contents
require 'rubygems' require 'active_support/all' 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 def require_all(*args) # :nodoc: args.each { |f| Dir[File.dirname(__FILE__) + "/sprinkle/#{f}"].each { |e| require e } } end $LOAD_PATH << File.dirname(__FILE__) require 'sprinkle/version' require_all "extensions/*.rb" require 'sprinkle/package' require 'sprinkle/verify' require 'sprinkle/installers/installer' require 'sprinkle/installers/package_installer' require_all "verifiers/*.rb", "installers/*.rb" module Sprinkle # Configuration options OPTIONS = { :testing => false, :verbose => false, :force => false } module Logger def logger # :nodoc: # ActiveSupport::BufferedLogger was deprecated and replaced by ActiveSupport::Logger in Rails 4. # Use ActiveSupport::Logger if available. active_support_logger = defined?(ActiveSupport::Logger) ? ActiveSupport::Logger : ActiveSupport::BufferedLogger @@__log__ ||= active_support_logger.new($stdout, active_support_logger::Severity::INFO) end end end # Object is extended with a few helper methods. Please see Sprinkle::Core. #-- # Define a logging target and understand packages, policies and deployment DSL #++ class Object include Sprinkle::Package, Sprinkle::Core, Sprinkle::Logger end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sprinkle-0.7.7 | lib/sprinkle.rb |
sprinkle-0.7.6.2 | lib/sprinkle.rb |
sprinkle-0.7.6.1 | lib/sprinkle.rb |
sprinkle-0.7.6 | lib/sprinkle.rb |