Class: Gpr::Commands::Version

Inherits:
Base
  • Object
show all
Defined in:
lib/gpr/commands/version.rb

Constant Summary

Constants included from Gpr

APP_PATH, VERSION

Instance Method Summary collapse

Methods inherited from Base

inherited

Constructor Details

#initialize(thor) ⇒ Version

Returns a new instance of Version.



6
7
8
9
10
11
12
13
14
# File 'lib/gpr/commands/version.rb', line 6

def initialize(thor)
  thor.class_eval do
    desc 'version', 'Display installed gpr version'
    map '-v' => :version
    def version
      puts "gpr #{::Gpr::VERSION}"
    end
  end
end