lib/gisha/cli.rb in gisha-0.0.4 vs lib/gisha/cli.rb in gisha-0.0.5

- old
+ new

@@ -53,17 +53,18 @@ def execute FileUtils.rm_rf(path) end end - class UpdateCommand < Clamp::Command + class DeployCommand < Clamp::Command + parameter 'URL', 'url to deploy' parameter 'KEY_ID', 'id to identify the key' parameter 'PATH', 'repository path' parameter 'REVISION', 'repository path' def execute - Commands::Update.new(key_id, path, revision).exec + Commands::Deploy.new(url, key_id, path, revision).exec end end class CLI < Clamp::Command subcommand 'keys:add', 'add new key', AddKeyCommand @@ -71,9 +72,9 @@ subcommand 'repositories:create', 'create repository', CreateRepositoryCommand subcommand 'repositories:delete', 'delete repository', DeleteRepositoryCommand subcommand 'receive', 'receive what is pushed into the repository', ReceiveCommand - subcommand 'update', 'update repository to last version', UpdateCommand + subcommand 'deploy', 'deploy to spass', DeployCommand end end