lib/sunzi/cli.rb in sunzi-0.9.0 vs lib/sunzi/cli.rb in sunzi-1.0.0

- old
+ new

@@ -28,10 +28,15 @@ desc 'teardown [linode|digital_ocean] [name]', 'Teardown an existing VM' def teardown(target, name) Cloud::Base.choose(self, target).teardown(name) end + desc 'version', 'Show version' + def version + puts Gem.loaded_specs['sunzi'].version.to_s + end + no_tasks do include Sunzi::Utility def self.source_root File.expand_path('../../',__FILE__) @@ -40,10 +45,9 @@ def do_create(project) template 'templates/create/.gitignore', "#{project}/.gitignore" template 'templates/create/sunzi.yml', "#{project}/sunzi.yml" template 'templates/create/install.sh', "#{project}/install.sh" template 'templates/create/recipes/sunzi.sh', "#{project}/recipes/sunzi.sh" - template 'templates/create/recipes/ssh_key.sh', "#{project}/recipes/ssh_key.sh" template 'templates/create/roles/app.sh', "#{project}/roles/app.sh" template 'templates/create/roles/db.sh', "#{project}/roles/db.sh" template 'templates/create/roles/web.sh', "#{project}/roles/web.sh" end