Changeset 98
- Timestamp:
- 04/29/08 16:39:54 (7 months ago)
- Location:
- branches/1.3
- Files:
-
- 7 modified
- 1 copied
-
CHANGELOG.txt (modified) (1 diff)
-
app/controllers/deployments_controller.rb (modified) (1 diff)
-
app/controllers/stages_controller.rb (modified) (1 diff)
-
app/models/project_configuration.rb (modified) (1 diff)
-
lib/webistrano/template.rb (modified) (1 diff)
-
lib/webistrano/template/mod_rails.rb (copied) (copied from trunk/lib/webistrano/template/mod_rails.rb)
-
test/functional/stages_controller_test.rb (modified) (2 diffs)
-
test/unit/project_configuration_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3/CHANGELOG.txt
r92 r98 3 3 4 4 1.3 5 6 * Add support for mod_rails / Phusion Passenger. Use mod_rails as project type. 5 7 6 8 * Ability to disable host per deloy. This way host that are down do not block a deployment -
branches/1.3/app/controllers/deployments_controller.rb
r80 r98 11 11 respond_to do |format| 12 12 format.html # index.rhtml 13 format.xml { render :xml => @deployment .to_xml }13 format.xml { render :xml => @deployments.to_xml } 14 14 end 15 15 end -
branches/1.3/app/controllers/stages_controller.rb
r82 r98 2 2 3 3 before_filter :load_project 4 5 # GET /projects/1/stages.xml 6 def index 7 @stages = current_project.stages 8 respond_to do |format| 9 format.xml { render :xml => @stages.to_xml } 10 end 11 end 4 12 5 13 # GET /projects/1/stages/1 -
branches/1.3/app/models/project_configuration.rb
r1 r98 10 10 'rails' => Webistrano::Template::Rails, 11 11 'mongrel_rails' => Webistrano::Template::MongrelRails, 12 'mod_rails' => Webistrano::Template::ModRails, 12 13 'pure_file' => Webistrano::Template::PureFile 13 14 } -
branches/1.3/lib/webistrano/template.rb
r1 r98 3 3 require "webistrano/template/mongrel_rails" 4 4 require "webistrano/template/pure_file" 5 require "webistrano/template/mod_rails" -
branches/1.3/test/functional/stages_controller_test.rb
r34 r98 14 14 15 15 @project = create_new_project(:template => 'mongrel_rails') 16 @stage = create_new_stage(:project => @project )16 @stage = create_new_stage(:project => @project, :name => 'my_stage') 17 17 @user = login 18 18 end 19 19 20 def test_should_not_get_index 21 assert_raise(ActionController::UnknownAction){ 22 get :index, :project_id => @project.id 23 } 20 def test_should_get_index 21 get :index, :project_id => @project.id 22 assert_response :success 24 23 end 25 24 … … 108 107 end 109 108 109 def test_index 110 get :index, :project_id => @project.id, :format => 'xml' 111 assert_response :success 112 assert_select 'stages' do |elements| 113 elements.each do |el| 114 assert_select 'stage>name', 'my_stage' 115 end 116 end 117 end 118 110 119 end -
branches/1.3/test/unit/project_configuration_test.rb
r1 r98 8 8 assert_not_nil ProjectConfiguration.templates['mongrel_rails'] 9 9 assert_not_nil ProjectConfiguration.templates['pure_file'] 10 assert_not_nil ProjectConfiguration.templates['mod_rails'] 10 11 end 11 12
