Class: Acv2lrtemplate::CLI
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
21 22 23 |
# File 'lib/acv2lrtemplate/cli.rb', line 21 def self.exit_on_failure? true end |
Instance Method Details
#convert(file_path) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/acv2lrtemplate/cli.rb', line 11 def convert(file_path) begin file_name = Acv2lrtemplate.convert!(file_path, [:name]) print_success(file_name) rescue => e print_error(e.) end rescue end |