lib/application.rb in docman-0.0.11 vs lib/application.rb in docman-0.0.12
- old
+ new
@@ -67,10 +67,11 @@
def execute(action, state, name = nil)
params = @deploy_target.clone
params['state'] = state
params['action'] = action
params['name'] = name
- params['environment'] = @deploy_target['environments'][state]
+ params['environment'] = @config['environments'][@deploy_target['states'][state]]
+ params['environment_name'] = @deploy_target['states'][state]
Docman::Deployers::Deployer.create(params, nil, self).perform
end
def force?
@force or @options[:force]