Class: Poke::Commands::Lru

Inherits:
Thor
  • Object
show all
Defined in:
lib/poke/commands/lru.rb,
lib/poke/commands/lru/cat.rb,
lib/poke/commands/lru/reset.rb

Defined Under Namespace

Classes: Cat, Reset

Instance Method Summary collapse

Instance Method Details

#catObject



19
20
21
22
23
24
25
26
# File 'lib/poke/commands/lru.rb', line 19

def cat(*)
  if options[:help]
    invoke :help, ['cat']
  else
    require_relative 'lru/cat'
    Poke::Commands::Lru::Cat.new(options).execute
  end
end

#resetObject



9
10
11
12
13
14
15
16
# File 'lib/poke/commands/lru.rb', line 9

def reset(*)
  if options[:help]
    invoke :help, ['reset']
  else
    require_relative 'lru/reset'
    Poke::Commands::Lru::Reset.new(options).execute
  end
end