Module: BonjourgemResults

Defined in:
lib/bonjourgem_results.rb,
lib/bonjourgem_results/version.rb

Constant Summary collapse

VERSION =
"0.0.1"

Instance Method Summary collapse

Instance Method Details

#runObject



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/bonjourgem_results.rb', line 10

def run
  opts = Slop.parse do 
    on '-g', :gem= , 'Single gem name'
    on '-l', :list=, 'Path to a file contain list of gems separated by \\n'
    on :h, :help   , 'Print this help message', :tail => true do
      puts help
      exit
    end
  end
  
  bonjourgem = BonjourgemParser.new opts
  bonjourgem.process
end