Module: Autoproj::CLI
- Defined in:
- lib/autoproj/cli.rb,
lib/autoproj/cli/doc.rb,
lib/autoproj/cli/log.rb,
lib/autoproj/cli/tag.rb,
lib/autoproj/cli/base.rb,
lib/autoproj/cli/exec.rb,
lib/autoproj/cli/main.rb,
lib/autoproj/cli/show.rb,
lib/autoproj/cli/test.rb,
lib/autoproj/cli/build.rb,
lib/autoproj/cli/cache.rb,
lib/autoproj/cli/clean.rb,
lib/autoproj/cli/envsh.rb,
lib/autoproj/cli/query.rb,
lib/autoproj/cli/reset.rb,
lib/autoproj/cli/watch.rb,
lib/autoproj/cli/which.rb,
lib/autoproj/cli/commit.rb,
lib/autoproj/cli/locate.rb,
lib/autoproj/cli/osdeps.rb,
lib/autoproj/cli/status.rb,
lib/autoproj/cli/update.rb,
lib/autoproj/cli/patcher.rb,
lib/autoproj/cli/utility.rb,
lib/autoproj/cli/version.rb,
lib/autoproj/cli/main_doc.rb,
lib/autoproj/cli/manifest.rb,
lib/autoproj/cli/versions.rb,
lib/autoproj/cli/bootstrap.rb,
lib/autoproj/cli/main_test.rb,
lib/autoproj/cli/main_global.rb,
lib/autoproj/cli/main_plugin.rb,
lib/autoproj/cli/reconfigure.rb,
lib/autoproj/cli/switch_config.rb,
lib/autoproj/cli/inspection_tool.rb
Defined Under Namespace
Classes: Base, Bootstrap, Build, CLIAmbiguousArguments, CLIException, CLIInvalidArguments, CLIInvalidSelection, Cache, Clean, Commit, Doc, Envsh, Exec, InspectionTool, Locate, Log, Main, MainDoc, MainGlobal, MainPlugin, MainTest, Manifest, OSDeps, Patcher, Query, Reconfigure, Reset, Show, Status, SwitchConfig, Tag, Test, Update, Utility, Version, Versions, Watch, Which
Class Method Summary
collapse
Class Method Details
.basic_setup ⇒ Object
12
13
14
15
16
17
18
19
|
# 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 ⇒ Object
18
19
20
21
22
23
24
25
26
27
28
29
|
# 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
|