lib/minimart/cli.rb in minimart-1.2.0 vs lib/minimart/cli.rb in minimart-1.2.3

- old
+ new

@@ -1,18 +1,27 @@ require 'thor' require 'minimart' require 'minimart/commands/mirror' require 'minimart/commands/web' +require 'minimart/version' module Minimart # The command line interface for Minimart. class Cli < Thor include Thor::Actions DEFAULT_INVENTORY_CONFIG = './inventory.yml' DEFAULT_INVENTORY_DIRECTORY = './inventory' DEFAULT_WEB_DIRECTORY = './web' + + ## + # Version + ## + desc 'version', 'Display Minimart version.' + def version + puts Minimart::VERSION + end ## # Init ## desc 'init', 'Begin a new Minimart.'