Class: ComerDeTapas::CLI
- Inherits:
-
Thor
- Object
- Thor
- ComerDeTapas::CLI
- Defined in:
- lib/comer_de_tapas/cli.rb
Instance Method Summary collapse
- #download ⇒ Object
- #init ⇒ Object
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
- #version ⇒ Object
Constructor Details
#initialize ⇒ CLI
5 6 7 8 |
# File 'lib/comer_de_tapas/cli.rb', line 5 def initialize(*) @client = Client.new super end |
Instance Method Details
#download ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/comer_de_tapas/cli.rb', line 25 def download @client.fetch_episodes!([:force]) @client.prepare_save_folder! @client.authenticate @client.load_episodes @client.download_all_tapas! end |
#init ⇒ Object
17 18 19 20 |
# File 'lib/comer_de_tapas/cli.rb', line 17 def init @client.init! say 'Please fill in your subscription info in ~/.rubytapas/.credentials' end |
#version ⇒ Object
11 12 13 |
# File 'lib/comer_de_tapas/cli.rb', line 11 def version say VERSION end |