lib/rmd/deploy_service.rb in rmdd-0.1.12 vs lib/rmd/deploy_service.rb in rmdd-0.1.13
- old
+ new
@@ -3,12 +3,17 @@
TYPE = ['access', 'error', 'realtime', 'web']
class ServerNotFound < StandardError; end
class DeployService
- def self.deploy(server)
+ def self.deploy(server, skip_assets = false)
validate(server)
- command = "curl -s #{url(server)}/deploy/#{token(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}"
system_cmd(command)
end
def self.restart(server)
validate(server)