Class: Enroute::CLI

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


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

def self.exit_on_failure?
  true
end

Instance Method Details

#exportObject



33
34
35
36
37
38
39
40
# File 'lib/enroute/cli.rb', line 33

def export
  require_path = File.expand_path(options["require"])
  output_path = File.expand_path(options["output"])
  config_path = File.expand_path(options["config"])

  require require_path
  Export.call(output_path, config_path)
end

#versionObject



12
13
14
# File 'lib/enroute/cli.rb', line 12

def version
  say "Enroute #{Enroute::VERSION}"
end