bin/mkit in mkit-0.7.2 vs bin/mkit in mkit-0.8.0
- old
+ new
@@ -11,10 +11,11 @@
require 'erb'
require 'uri'
require 'fileutils'
require 'mkit/client/command_parser'
require 'mkit/client/mkitd_client'
+require 'mkit/version'
class InvalidConfigurationException < Exception
attr_reader :command
def initialize(cause, command = nil)
@@ -89,10 +90,14 @@
def request(request, request_data)
client = MKIt::MKItdClient.new(request, @configuration['server.uri'], @my_id)
client.request(request, request_data)
end
+ def version(request, request_data)
+ puts "MKIt Client version #{MKIt::VERSION}"
+ request(request, request_data)
+ end
#
# commands
#
def init(request, request_data = nil)
cfg = read_configuration(true)
@@ -172,10 +177,5 @@
#
# go
#
client = MKItClient.new
client.doIt(ARGV.dup)
-#
-# if ARGV.any?
-# parse args
-# host, socket, config file
-# end