class Autoproj::CLI::MainDoc
Public Instance Methods
Source
# File lib/autoproj/cli/main_doc.rb, line 41 def disable(*packages) require "autoproj/cli/doc" report(silent: true) do cli = Doc.new args = cli.validate_options(packages, options) cli.disable(*args) end end
Source
# File lib/autoproj/cli/main_doc.rb, line 29 def enable(*packages) require "autoproj/cli/doc" report(silent: true) do cli = Doc.new args = cli.validate_options(packages, options) cli.enable(*args) end end
Source
# File lib/autoproj/cli/main_doc.rb, line 75 def exec(*packages) require "autoproj/cli/doc" options = self.options.merge(parent_options) report do |extra_options| cli = Doc.new options.delete(:tool) args = cli.validate_options(packages, options.merge(extra_options)) cli.run(*args) end end
Source
# File lib/autoproj/cli/main_doc.rb, line 53 def list(*packages) require "autoproj/cli/doc" report(silent: true) do cli = Doc.new args = cli.validate_options(packages, options) cli.list(*args) end end
Source
# File lib/autoproj/cli/main_doc.rb, line 9 def report(report_options = Hash.new) options = self.options.merge(parent_options) extra_options = Hash.new if options[:tool] Autobuild::Subprocess.transparent_mode = true Autobuild.silent = true Autobuild.color = false report_options[:silent] = true report_options[:on_package_failures] = :exit_silent extra_options[:silent] = true end Autoproj.report(**Hash[debug: options[:debug]].merge(report_options)) do yield(extra_options) end end