lib/rmd/deploy_service.rb in rmdd-0.1.13 vs lib/rmd/deploy_service.rb in rmdd-0.1.14

- old
+ new

@@ -5,15 +5,11 @@ class ServerNotFound < StandardError; end class DeployService def self.deploy(server, skip_assets = false) validate(server) - deploy_url = if skip_assets - "#{url(server)}/deploy/#{token(server)}" - else - "#{url(server)}/deploy_without_assets/#{token(server)}" - end - command = "curl -s #{deploy_url}" + deploy_url = "#{url(server)}/deploy?token=#{token(server)}&skip_assets=#{skip_assets}" + command = "curl -s -X GET #{deploy_url}" system_cmd(command) end def self.restart(server) validate(server)