lib/application.rb in docman-0.0.99 vs lib/application.rb in docman-0.0.100

- old
+ new

@@ -82,20 +82,20 @@ end def build(deploy_target_name, state, options = false) with_rescue do @options = options - @docroot_config = DocrootConfig.new(@workspace_dir, deploy_target_name, options) + @docroot_config = DocrootConfig.new(@workspace_dir, deploy_target_name, options, state) @deploy_target = @docroot_config.deploy_target 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 - @docroot_config = DocrootConfig.new(@workspace_dir, deploy_target_name, options) + @docroot_config = DocrootConfig.new(@workspace_dir, deploy_target_name, options, state) @deploy_target = @docroot_config.deploy_target @docroot_config.states_dependin_on(name, version).keys.each do |state| execute('deploy', state, name) write_environment(@deploy_target['states'][state], name) write_state state