Changeset 98

Show
Ignore:
Timestamp:
04/29/08 16:39:54 (7 months ago)
Author:
jweiss
Message:

merge latest changes into 1.3

Location:
branches/1.3
Files:
7 modified
1 copied

Legend:

Unmodified
Added
Removed
  • branches/1.3/CHANGELOG.txt

    r92 r98  
    33 
    441.3 
     5 
     6* Add support for mod_rails / Phusion Passenger. Use mod_rails as project type. 
    57 
    68* 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  
    1111    respond_to do |format| 
    1212      format.html # index.rhtml 
    13       format.xml  { render :xml => @deployment.to_xml } 
     13      format.xml  { render :xml => @deployments.to_xml } 
    1414    end 
    1515  end 
  • branches/1.3/app/controllers/stages_controller.rb

    r82 r98  
    22 
    33  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 
    412 
    513  # GET /projects/1/stages/1 
  • branches/1.3/app/models/project_configuration.rb

    r1 r98  
    1010      'rails' => Webistrano::Template::Rails, 
    1111      'mongrel_rails' => Webistrano::Template::MongrelRails, 
     12      'mod_rails' => Webistrano::Template::ModRails, 
    1213      'pure_file' => Webistrano::Template::PureFile 
    1314    } 
  • branches/1.3/lib/webistrano/template.rb

    r1 r98  
    33require "webistrano/template/mongrel_rails" 
    44require "webistrano/template/pure_file" 
     5require "webistrano/template/mod_rails" 
  • branches/1.3/test/functional/stages_controller_test.rb

    r34 r98  
    1414     
    1515    @project = create_new_project(:template => 'mongrel_rails') 
    16     @stage = create_new_stage(:project => @project) 
     16    @stage = create_new_stage(:project => @project, :name => 'my_stage') 
    1717    @user = login 
    1818  end 
    1919 
    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 
    2423  end 
    2524 
     
    108107  end 
    109108   
     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   
    110119end 
  • branches/1.3/test/unit/project_configuration_test.rb

    r1 r98  
    88    assert_not_nil ProjectConfiguration.templates['mongrel_rails'] 
    99    assert_not_nil ProjectConfiguration.templates['pure_file'] 
     10    assert_not_nil ProjectConfiguration.templates['mod_rails'] 
    1011  end 
    1112