Class: SpotifyExporter::CLI

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

Overview

The CLI spotify exporter

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns exit with non zero status when an exception occurs

Returns:

  • (Boolean)


16
17
18
# File 'lib/spotifyexporter/cli.rb', line 16

def self.exit_on_failure?
  true
end

Instance Method Details

#authObject



29
30
31
32
# File 'lib/spotifyexporter/cli.rb', line 29

def auth
  workflow = AuthWorkflow.new
  workflow.start
end

#versionObject



24
25
26
# File 'lib/spotifyexporter/cli.rb', line 24

def version
  puts SpotifyExporter::VERSION
end