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

Changeset 4021

Show
Ignore:
Timestamp:
03/24/06 02:58:39 (3 years ago)
Author:
minam
Message:

Deprecate the -r/--recipe switch in favor of -f/--file (for more make/rake-like semantics)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/capistrano/CHANGELOG

    r4020 r4021  
    11*SVN* 
     2 
     3* Deprecate the -r/--recipe switch in favor of -f/--file (for more make/rake-like semantics) [Jamis Buck] 
    24 
    35* Fix gemspec to include a dependency on rake 0.7 [Jamis Buck] 
  • tools/capistrano/lib/capistrano/cli.rb

    r3791 r4021  
    111111        ) { |value| @options[:actions] << value } 
    112112 
     113        opts.on("-f", "--file FILE", 
     114          "A recipe file to load. Multiple recipes may", 
     115          "be specified, and are loaded in the given order." 
     116        ) { |value| @options[:recipes] << value } 
     117 
    113118        opts.on("-p", "--password [PASSWORD]", 
    114119          "The password to use when connecting. If the switch", 
     
    120125        opts.on("-r", "--recipe RECIPE", 
    121126          "A recipe file to load. Multiple recipes may", 
    122           "be specified, and are loaded in the given order." 
    123         ) { |value| @options[:recipes] << value } 
     127          "be specified, and are loaded in the given order.", 
     128          "(This option is deprecated--please use -f instead)" 
     129        ) do |value| 
     130          warn "Deprecated -r/--recipe flag used. Please use -f instead" 
     131          @options[:recipes] << value 
     132        end 
    124133 
    125134        opts.on("-s", "--set NAME=VALUE",