Class: WebInvoice::CLI

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

Defined Under Namespace

Classes: Params

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.run(args) ⇒ Object



48
49
50
# File 'lib/web_invoice/cli.rb', line 48

def self.run(args)
  WebInvoice::CLI.new.run(args)
end

Instance Method Details

#run(args) ⇒ Object



51
52
53
54
55
56
# File 'lib/web_invoice/cli.rb', line 51

def run(args)
  params = Params.new(args)
  sc = params.service_class
  raise "service_class not found." unless sc
  sc.execute params.service_config
end