Class: RIM::Command::Info

Inherits:
RIM::Command show all
Defined in:
lib/rim/command/info.rb

Instance Method Summary collapse

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.banner = "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

#invokeObject



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