Skip to content

Commit

Permalink
Adjust to slightly different deployment API under AS7-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmcwhirter committed May 21, 2011
1 parent e8a54d6 commit 535443c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/torquespec/as7.rb
Expand Up @@ -24,12 +24,14 @@ def _deploy(path)
begin
domain_api( :operation => "add",
:address => [ "deployment", addressify(path) ],
:url => urlify(path) )
rescue Exception
:content => [ { :url=>urlify(path)} ] )
rescue Exception=>e
_undeploy(path)
if once
once = false
retry
else
raise e
end
end
domain_api( :operation => "deploy",
Expand Down

0 comments on commit 535443c

Please sign in to comment.