Sha256: b57835d63ae9d554563d09df28263b9d25219bcf7b89d6c168c9dfc62add7390

Contents?: true

Size: 667 Bytes

Versions: 5

Compression:

Stored size: 667 Bytes

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
        @engine.log.show Gloo::App::Info.full_version
      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

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gloo-2.2.0 lib/gloo/verbs/version.rb
gloo-2.1.0 lib/gloo/verbs/version.rb
gloo-2.0.2 lib/gloo/verbs/version.rb
gloo-2.0.1 lib/gloo/verbs/version.rb
gloo-2.0.0 lib/gloo/verbs/version.rb