Class: Klipbook::Commands::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/klipbook/commands/command.rb

Direct Known Subclasses

Export, List

Instance Method Summary collapse

Constructor Details

#initialize(logger = Logger.new) ⇒ Command

Returns a new instance of Command.



4
5
6
# File 'lib/klipbook/commands/command.rb', line 4

def initialize(logger=Logger.new)
  @logger = logger
end

Instance Method Details

#run!(options) ⇒ Object



8
9
10
# File 'lib/klipbook/commands/command.rb', line 8

def run!(options)
  run_command!(book_source(options), options)
end

#run_command!Object



12
13
14
# File 'lib/klipbook/commands/command.rb', line 12

def run_command!
  raise "Implement me"
end