Class: Puppet::ModuleTool::Applications::Searcher

Inherits:
Application show all
Defined in:
lib/vendor/puppet/module_tool/applications/searcher.rb

Constant Summary

Constants inherited from Application

Application::DOCPATTERN

Constants included from Util

Util::AbsolutePathPosix, Util::AbsolutePathWindows

Instance Attribute Summary

Attributes inherited from Application

#command_line, #options

Instance Method Summary collapse

Methods inherited from Application

[], banner, clear!, clear?, #configure_indirector_routes, controlled_run, exit, find, #handlearg, #help, interrupted?, #main, #name, option, option_parser_commands, #parse_options, #preinit, restart!, restart_requested?, #run_command, run_mode, #set_run_mode, #setup, #setup_logs, should_not_parse_config, should_parse_config, #should_parse_config?, should_parse_config?, stop!, stop_requested?

Methods included from Util

absolute_path?, activerecord_version, benchmark, binread, chuser, classproxy, #execfail, #execpipe, execute, execute_posix, execute_windows, logmethods, memory, path_to_uri, proxy, replace_file, safe_posix_fork, symbolize, symbolizehash, symbolizehash!, synchronize_on, thinmark, #threadlock, uri_to_path, wait_for_output, which, withumask

Methods included from Util::POSIX

#get_posix_field, #gid, #idfield, #methodbyid, #methodbyname, #search_posix_field, #uid

Constructor Details

#initialize(term, options = {}) ⇒ Searcher

Returns a new instance of Searcher.



5
6
7
8
# File 'lib/vendor/puppet/module_tool/applications/searcher.rb', line 5

def initialize(term, options = {})
  @term = term
  super(options)
end

Instance Method Details

#runObject



10
11
12
# File 'lib/vendor/puppet/module_tool/applications/searcher.rb', line 10

def run
  Puppet::Forge.search(@term)
end