lib/application.rb in docman-0.0.28 vs lib/application.rb in docman-0.0.29

- old
+ new

@@ -77,19 +77,22 @@ execute('build', state, nil, options['tag']) end end def deploy(deploy_target_name, name, type, version, options = false) + result = nil with_rescue do @options = options @deploy_target = @config['deploy_targets'][deploy_target_name] raise "Wrong deploy target: #{deploy_target_name}" if @deploy_target.nil? @deploy_target['name'] = deploy_target_name @docroot_config = DocrootConfig.new(@workspace_dir, deploy_target) @docroot_config.states_dependin_on(name, version).keys.each do |state| execute('deploy', state, name) + result = state end end + result end def execute(action, state, name = nil, tag = nil) params = Marshal.load(Marshal.dump(@deploy_target)) params['state'] = state