Class: JazzLibs::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/jazz_libs/cli.rb,
lib/jazz_libs/cli/generator.rb

Defined Under Namespace

Classes: Error, Generator

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object (private)

Raises:



21
22
23
# File 'lib/jazz_libs/cli.rb', line 21

def method_missing(method, *args)
  raise Error, "Unrecognized command \"#{method}\". Please consult `jazz help`."
end

Instance Method Details

#new(repository) ⇒ Object



15
16
17
# File 'lib/jazz_libs/cli.rb', line 15

def new(repository)
  Generator.new.run repository
end