Class: Toccatore::CLI
- Inherits:
-
Thor
- Object
- Thor
- Toccatore::CLI
- Defined in:
- lib/toccatore/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
8 9 10 |
# File 'lib/toccatore/cli.rb', line 8 def self.exit_on_failure? true end |
Instance Method Details
#__print_version ⇒ Object
16 17 18 |
# File 'lib/toccatore/cli.rb', line 16 def __print_version puts Toccatore::VERSION end |
#orcid_update ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/toccatore/cli.rb', line 28 def orcid_update [:query] = "doi:#{[:doi]}" if [:doi].present? [:query] = "nameIdentifier:ORCID\\:#{[:orcid]}" if [:orcid].present? orcid_update = Toccatore::OrcidUpdate.new orcid_update.queue_jobs() end |