Class: Rezept::Cli

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Cli

Returns a new instance of Cli.



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

def initialize(*args)
  @actions = Rezept::Actions.new(
    Rezept::Client.new,
    Rezept::Converter.new
  )
  super(*args)
end

Instance Method Details

#applyObject



27
28
29
# File 'lib/rezept/cli.rb', line 27

def apply
  @actions.apply(options)
end

#convertObject



36
37
38
# File 'lib/rezept/cli.rb', line 36

def convert
  @actions.convert(options)
end

#exportObject



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

def export
  @actions.export(options)
end

#put_inventoryObject



58
59
60
# File 'lib/rezept/cli.rb', line 58

def put_inventory
  @actions.put_inventory(options)
end

#run_commandObject



49
50
51
# File 'lib/rezept/cli.rb', line 49

def run_command
  @actions.run_command(options)
end