lib/ec2ssh/cli.rb in ec2ssh-3.0.0.beta1 vs lib/ec2ssh/cli.rb in ec2ssh-3.0.0

- old
+ new

@@ -49,9 +49,15 @@ def migrate command = make_command :migrate command.run end + desc 'version', 'Show version' + def version + require 'ec2ssh/version' + puts "ec2ssh #{Ec2ssh::VERSION}" + end + no_tasks do def check_dotfile_version return unless File.exist?(options.dotfile) migrator = Migrator.new options.dotfile if migrator.check_version < '3'