lib/kpm/tasks.rb in kpm-0.2.2 vs lib/kpm/tasks.rb in kpm-0.2.3
- old
+ new
@@ -1,14 +1,22 @@
require 'highline'
require 'logger'
require 'thor'
require 'pathname'
+require 'kpm/version'
+
module KPM
module Tasks
def self.included(base)
base.send :include, ::Thor::Actions
base.class_eval do
+
+
+ desc 'KPM version', 'Return current KPM version.'
+ def version
+ say "KPM version #{KPM::VERSION}"
+ end
class_option :overrides,
:type => :hash,
:default => nil,
:desc => "A hashed list of overrides. Available options are 'url', 'repository', 'username', and 'password'."