Class: RIM::Command::Info
- Inherits:
-
RIM::Command
- Object
- RIM::Command
- RIM::Command::Info
- Defined in:
- lib/rim/command/info.rb
Instance Method Summary collapse
-
#initialize(opts) ⇒ Info
constructor
A new instance of Info.
- #invoke ⇒ Object
Constructor Details
#initialize(opts) ⇒ Info
Returns a new instance of Info.
9 10 11 12 13 14 15 16 |
# File 'lib/rim/command/info.rb', line 9 def initialize(opts) opts. = "Usage: rim info [<options>] [<local_module_path>]" opts.description = "Prints information about RIM modules in <local_module_path> or all modules if omitted" opts.separator "" opts.on("-d", "--detailed", "print detailed information") do @detailed = true end end |
Instance Method Details
#invoke ⇒ Object
18 19 20 21 22 |
# File 'lib/rim/command/info.rb', line 18 def invoke helper = InfoHelper.new(project_git_dir, @logger) helper.modules_from_paths(helper.module_paths(ARGV)) helper.upstream_info end |