Sha256: 0ad706ec117ec984f30ef00a0695bf6066d07152051a299894066252737d9c82

Contents?: true

Size: 1.78 KB

Versions: 6

Compression:

Stored size: 1.78 KB

Contents

require "enumerator"
require 'utilrb/module/attr_predicate'
require 'pathname'
require 'concurrent'
require 'autobuild'
require 'autoproj/base'
require 'autoproj/exceptions'
require 'autoproj/version'
require 'autoproj/reporter'
require 'autoproj/environment'
require 'autoproj/variable_expansion'
require 'autoproj/find_workspace'
require 'autoproj/vcs_definition'
require 'autoproj/package_set'
require 'autoproj/package_definition'
require 'autoproj/package_selection'
require 'autoproj/metapackage'
require 'autoproj/manifest'
require 'autoproj/package_manifest'
require 'autoproj/installation_manifest'
require 'autoproj/os_package_installer'
require 'autoproj/os_package_resolver'
require 'autoproj/system'
require 'autoproj/build_option'
require 'autoproj/configuration'
require 'autoproj/options'
# Required by Workspace
require 'autoproj/ops/import'
# Required for auto-saving in import_packages
require 'autoproj/ops/snapshot'
require 'autoproj/query'

require 'autoproj/ops/tools'
require 'autoproj/ops/loader'
require 'autoproj/ops/configuration'

require 'autoproj/workspace'

require 'logger'
require 'utilrb/logger'

module Autoproj
    class << self
        attr_reader :logger
    end
    @logger = Logger.new(STDOUT)
    logger.level = Logger::WARN
    logger.formatter = lambda { |severity, time, progname, msg| "#{severity}: #{msg}\n" }
    extend Logger::Forward

    def self.warn_deprecated_level
        @warn_deprecated_level
    end

    def self.warn_deprecated_level=(level)
        @warn_deprecated_level = level
    end
    @warn_deprecated_level = 1

    def self.warn_deprecated(method, msg, level = 0)
        if level >= @warn_deprecated_level
            Autoproj.warn "#{method} is deprecated, #{msg}"
            caller.each { |l| Autoproj.warn "  #{l}" }
        end
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
autoproj-2.0.0.rc37 lib/autoproj.rb
autoproj-2.0.0.rc36 lib/autoproj.rb
autoproj-2.0.0.rc35 lib/autoproj.rb
autoproj-2.0.0.rc34 lib/autoproj.rb
autoproj-2.0.0.rc33 lib/autoproj.rb
autoproj-2.0.0.rc32 lib/autoproj.rb