Class: Cirneco::CLI

Inherits:
Thor
  • Object
show all
Includes:
Api, Base, Utils
Defined in:
lib/cirneco/cli.rb

Constant Summary

Constants included from Utils

Utils::UPPER_LIMIT

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Utils

#decode_doi, #encode_doi, #generate_accession_number, #generate_state_change_template, #generate_transfer_template, #get_dois_by_prefix

Methods included from Api

#delete_metadata, #get_doi, #get_dois, #get_media, #get_metadata, #get_rest_doi, #post_media, #post_metadata, #put_doi, #put_metadata, #transfer_doi, #update_rest_doi

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/cirneco/cli.rb', line 22

def self.exit_on_failure?
  true
end

Instance Method Details

#__print_versionObject



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

def __print_version
  puts Cirneco::VERSION
end