Sha256: 42125b567ba4e1733340a50cca3132a8b7622e9b579b519ae06f1918adba30a8

Contents?: true

Size: 1.76 KB

Versions: 9

Compression:

Stored size: 1.76 KB

Contents

require "enumerator"
require 'utilrb/module/attr_predicate'
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 = 0

    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

9 entries across 9 versions & 1 rubygems

Version Path
autoproj-2.0.0.rc14 lib/autoproj.rb
autoproj-2.0.0.rc13 lib/autoproj.rb
autoproj-2.0.0.rc12 lib/autoproj.rb
autoproj-2.0.0.rc11 lib/autoproj.rb
autoproj-2.0.0.rc10 lib/autoproj.rb
autoproj-2.0.0.rc9 lib/autoproj.rb
autoproj-2.0.0.rc8 lib/autoproj.rb
autoproj-2.0.0.rc6 lib/autoproj.rb
autoproj-2.0.0.rc5 lib/autoproj.rb