Class: ComerDeTapas::CLI

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

Instance Method Summary collapse

Constructor Details

#initializeCLI

Returns a new instance of CLI.



5
6
7
8
# File 'lib/comer_de_tapas/cli.rb', line 5

def initialize(*)
  @client = Client.new
  super
end

Instance Method Details

#downloadObject



26
27
28
# File 'lib/comer_de_tapas/cli.rb', line 26

def download
  @client.download(force: options[:force])
end

#initObject



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

def init
  @client.init!
  say "Please fill in your subscription info in ~/.rubytapas/.credentials."
  say "When you finished, type `comer_de_tapas download` to download."
end

#versionObject



11
12
13
# File 'lib/comer_de_tapas/cli.rb', line 11

def version
  say VERSION
end