Sha256: 0b92380486444b0045b7e3002351b4e1b155477be61882265ec7334dfd48752e
Contents?: true
Size: 701 Bytes
Versions: 7
Compression:
Stored size: 701 Bytes
Contents
# encoding: UTF-8 require "thor" require_relative 'sitemap' module Maltese class CLI < Thor def self.exit_on_failure? true end # from http://stackoverflow.com/questions/22809972/adding-a-version-option-to-a-ruby-thor-cli map %w[--version -v] => :__print_version desc "--version, -v", "print the version" def __print_version puts Toccatore::VERSION end desc "sitemap", "generate sitemap for DataCite Search" method_option :sitemap_bucket, type: :string method_option :from_date, type: :string method_option :until_date, type: :string def sitemap sitemap = Maltese::Sitemap.new(options) sitemap.queue_jobs end end end
Version data entries
7 entries across 7 versions & 1 rubygems