Sha256: 2ae4f5ec0c2c82c5c92796fffe8778720519baaa074c0b68331395f300c13c23

Contents?: true

Size: 1.22 KB

Versions: 8

Compression:

Stored size: 1.22 KB

Contents

# Author::    Eric Crane  (mailto:eric.crane@mac.com)
# Copyright:: Copyright (c) 2019 Eric Crane.  All rights reserved.
#
# Show the current application version.
#

module Gloo
  module Verbs
    class Version < Gloo::Core::Verb

      KEYWORD = 'version'.freeze
      KEYWORD_SHORT = 'v'.freeze

      #
      # Run the verb.
      #
      def run
        $log.show Gloo::App::Info.display_title
      end

      #
      # Get the Verb's keyword.
      #
      def self.keyword
        return KEYWORD
      end

      #
      # Get the Verb's keyword shortcut.
      #
      def self.keyword_shortcut
        return KEYWORD_SHORT
      end

      # ---------------------------------------------------------------------
      #    Help
      # ---------------------------------------------------------------------

      #
      # Get help for this verb.
      #
      def self.help
        return <<~TEXT
          VERSION VERB
            NAME: version
            SHORTCUT: v

          DESCRIPTION
            Show the application version information.

          SYNTAX
            version

          PARAMETERS
            None

          RESULT
            None

          ERRORS
            None
        TEXT
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gloo-0.6.1 lib/gloo/verbs/version.rb
gloo-0.6.0 lib/gloo/verbs/version.rb
gloo-0.5.4 lib/gloo/verbs/version.rb
gloo-0.5.3 lib/gloo/verbs/version.rb
gloo-0.5.2 lib/gloo/verbs/version.rb
gloo-0.5.1 lib/gloo/verbs/version.rb
gloo-0.5.0 lib/gloo/verbs/version.rb
gloo-0.4.0 lib/gloo/verbs/version.rb