Class: BrandEins::CLI
- Inherits:
-
Thor
- Object
- Thor
- BrandEins::CLI
- Defined in:
- lib/brandeins.rb
Instance Method Summary collapse
Instance Method Details
#download ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/brandeins.rb', line 27 def download path = .path || File.('../..', __FILE__) p "path: #{path}" return false b1 = BrandEins::Downloader.new(.path) b1.get_magazine(.year, .volume) end |
#setup ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/brandeins.rb', line 36 def setup if BrandEinsHelper.windows? || BrandEinsHelper.osx? require 'brandeins/setup' else p 'Unknown/unsupported operating system. Please contact the gem author.' end end |