Class: BrandEins::CLI

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

Instance Method Summary collapse

Instance Method Details

#downloadObject



27
28
29
30
31
32
33
# File 'lib/brandeins.rb', line 27

def download
  path = options.path || File.expand_path('../..', __FILE__)
  p "path: #{path}"
  return false
  b1 = BrandEins::Downloader.new(options.path)
  b1.get_magazine(options.year, options.volume)
end

#setupObject



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

#versionObject



19
20
21
# File 'lib/brandeins.rb', line 19

def version
  p BrandEins::VERSION
end