lib/pragmater/cli.rb in pragmater-7.0.1 vs lib/pragmater/cli.rb in pragmater-7.1.0
- old
+ new
@@ -8,15 +8,15 @@
module Pragmater
# The Command Line Interface (CLI) for the gem.
class CLI < Thor
include Thor::Actions
- package_name Identity.version_label
+ package_name Identity::VERSION_LABEL
# rubocop:disable Metrics/MethodLength
def self.configuration
- Runcom::Config.new "#{Identity.name}/configuration.yml",
+ Runcom::Config.new "#{Identity::NAME}/configuration.yml",
defaults: {
add: {
comments: "",
includes: []
},
@@ -106,10 +106,10 @@
end
desc "-v, [--version]", "Show gem version."
map %w[-v --version] => :version
def version
- say Identity.version_label
+ say Identity::VERSION_LABEL
end
desc "-h, [--help=COMMAND]", "Show this message or get help for a command."
map %w[-h --help] => :help
def help task = nil