Class: Vendra::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/vendra/cli.rb

Instance Method Summary collapse

Instance Method Details

#exampleObject



9
10
11
12
# File 'lib/vendra/cli.rb', line 9

def example
  p "command called."
  create_file "~/.vendra/example.conf", "your vendra config"
end

#insert(value) ⇒ Object



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

def insert(value)
  cache_piece = CachePiece.new(value)
  insert(cache_piece)
end