Class: Enroute::CLI
- Inherits:
-
Thor
- Object
- Thor
- Enroute::CLI
- Defined in:
- lib/enroute/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
5 6 7 |
# File 'lib/enroute/cli.rb', line 5 def self.exit_on_failure? true end |
Instance Method Details
#export ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/enroute/cli.rb', line 33 def export require_path = File.(["require"]) output_path = File.(["output"]) config_path = File.(["config"]) require require_path Export.call(output_path, config_path) end |
#version ⇒ Object
12 13 14 |
# File 'lib/enroute/cli.rb', line 12 def version say "Enroute #{Enroute::VERSION}" end |