Class: GemOnDemand::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/gem_on_demand/cli.rb

Class Method Summary collapse

Class Method Details

.run(argv) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/gem_on_demand/cli.rb', line 8

def run(argv)
  options = parse_options(argv)
  if expire = options[:expire]
    GemOnDemand.expire(*expire.split("/"))
  else
    GemOnDemand::Server.run!(options)
  end
  0
end