lib/rmd/deploy_service.rb in rmdd-0.1.17 vs lib/rmd/deploy_service.rb in rmdd-0.1.18
- old
+ new
@@ -5,11 +5,12 @@
class ServerNotFound < StandardError; end
class DeployService
def self.deploy(server, skip_assets = false)
validate(server)
- deploy_url = "#{url(server)}/deploy?token=#{token(server)}&skip_assets=#{skip_assets.to_s}"
- command = "curl -s -X GET #{deploy_url}"
+ deploy_url = "#{url(server)}/deploy"
+ options = "-d token=#{token(server)} -d skip_assets=#{skip_assets.to_s}"
+ command = "curl -s -X GET #{deploy_url} #{options}"
system_cmd(command)
end
def self.restart(server)
validate(server)