module Autoproj::CLI

Public Class Methods

basic_setup() click to toggle source
# File lib/autoproj/cli/main.rb, line 12
def self.basic_setup
    Encoding.default_internal = Encoding::UTF_8
    Encoding.default_external = Encoding::UTF_8

    argv = ARGV.find_all { |arg| arg != "--no-plugins" }
    Autoproj::CLI.load_plugins if argv.size == ARGV.size
    argv
end
load_plugins() click to toggle source
# File lib/autoproj/cli.rb, line 18
def self.load_plugins
    finder_name =
        if Gem.respond_to?(:find_latest_files)
            :find_latest_files
        else
            :find_files
        end

    Gem.send(finder_name, "autoproj-*", true).each do |path|
        require path
    end
end