Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4775

Show
Ignore:
Timestamp:
08/16/06 17:56:28 (2 years ago)
Author:
minam
Message:

Don't require an explicit recipe file

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/capistrano/lib/capistrano/cli.rb

    r4283 r4775  
    205205(Currently, --apply-to only works with Rails applications.) 
    206206DETAIL 
     207#' # vim syntax highlighting fix 
    207208 
    208209        if args.empty? 
     
    227228    # Beginning running Capistrano based on the configured options. 
    228229    def execute! 
    229       if !@options[:recipes].empty? 
     230      if @options[:apply_to] 
     231        execute_apply_to! 
     232      else 
    230233        execute_recipes! 
    231       elsif @options[:apply_to] 
    232         execute_apply_to! 
    233234      end 
    234235    end 
     
    281282          look_for_default_recipe_file! if @options[:recipes].empty? 
    282283          look_for_raw_actions! 
    283           abort "You must specify at least one recipe" if @options[:recipes].empty? 
    284284          abort "You must specify at least one action" if @options[:actions].empty? 
    285285        else