Class: O3o::CLI

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

Instance Method Summary collapse

Instance Method Details

#fetch(type) ⇒ Object



7
8
9
# File 'lib/o3o/cli.rb', line 7

def fetch(type)
  puts O3o.fetch(type)
end

#lsObject



12
13
14
# File 'lib/o3o/cli.rb', line 12

def ls
  puts O3o.available
end

#randomObject



17
18
19
20
# File 'lib/o3o/cli.rb', line 17

def random
  type = O3o::Store.list.keys.sample
  puts O3o.fetch(type)
end