Sha256: 839ffc8af0f83d3ab3010daacddcee23804da5f13edeea5fe750e125514bf34a

Contents?: true

Size: 1.75 KB

Versions: 144

Compression:

Stored size: 1.75 KB

Contents

# Copyright 2006-2008 by Mike Bailey. All rights reserved.
Capistrano::Configuration.instance(:must_exist).load do 
  
  # deprecated tasks from deprec1
  # we're now using namespaces and some different naming conventions
  
  # XXX use deprecated function to generate these dynamically
  
  deprec2_isnt_backwards_compatible = <<-EOF
    
You've installed deprec2 but seem to be using a deprec1 command.

You have two options:

- install deprec-1.9.x and continue using deprec1

  Instructions are available at http://www.deprec.org/

- use deprec2

EOF

  cap2_warning = <<-EOF
  
You're using Capistrano 2 but using a deprecated cap1 command.

EOF
  
  task :setup_admin_account do
    puts deprec2_isnt_backwards_compatible  
    puts "  Replace 'cap setup_admin_account' with 'cap deprec:users:add'"
    puts
  end
  
  task :change_root_password do
    puts deprec2_isnt_backwards_compatible  
    puts "  Replace 'cap change_root_password' with 'cap deprec:users:passwd'"
    puts
  end
  
  task :setup_ssh_keys do
    puts deprec2_isnt_backwards_compatible  
    puts "  Replace 'cap setup_ssh_keys' with 'cap deprec:ssh:setup_keys'"
    puts
  end
  
  task :install_rails_stack do
    puts deprec2_isnt_backwards_compatible  
    puts "  Replace 'cap install_rails_stack' with 'cap deprec:rails:install_rails_stack'"
    puts
  end
  
  task :setup do
    puts deprec2_isnt_backwards_compatible  
    puts "  Replace 'cap setup' with 'cap deploy:setup'"
    puts
  end
  
  task :restart_apache do
    puts deprec2_isnt_backwards_compatible  
    puts "  Replace 'cap restart_apache' with 'cap deprec:apache:restart'"
    puts
  end
  
  task :show_tasks do
    puts deprec2_isnt_backwards_compatible  
    puts "  Replace 'cap show-tasks' with 'cap -T'"
    puts
  end
  
end

Version data entries

144 entries across 144 versions & 8 rubygems

Version Path
Empact-deprec-1.99.21 lib/deprec/recipes/deprecated.rb
andyh-deprec-1.99.26 lib/deprec/recipes/deprecated.rb
andyh-deprec-1.99.27 lib/deprec/recipes/deprecated.rb
isaac-deprec-1.99.30 lib/deprec/recipes/deprecated.rb
isaac-deprec-1.99.32 lib/deprec/recipes/deprecated.rb
le1t0-deprec-2.1.6.088 lib/deprec/recipes/deprecated.rb
le1t0-deprec-2.1.6.087 lib/deprec/recipes/deprecated.rb
le1t0-deprec-2.1.6.086 lib/deprec/recipes/deprecated.rb
le1t0-deprec-2.1.6.085 lib/deprec/recipes/deprecated.rb
le1t0-deprec-2.1.6.084 lib/deprec/recipes/deprecated.rb
le1t0-deprec-2.1.6.083 lib/deprec/recipes/deprecated.rb
le1t0-deprec-2.1.6.082 lib/deprec/recipes/deprecated.rb
deprec-3.1.0.rc10 lib/deprec/recipes/deprecated.rb
deprec-3.1.0.rc9 lib/deprec/recipes/deprecated.rb
deprec-3.1.0.rc8 lib/deprec/recipes/deprecated.rb
deprec-3.1.0.rc7 lib/deprec/recipes/deprecated.rb
deprec-3.1.0.rc6 lib/deprec/recipes/deprecated.rb
deprec-3.1.0.rc5 lib/deprec/recipes/deprecated.rb
deprec-core-3.1.3 lib/deprec-core/deprecated.rb
deprec-3.1.0.rc4 lib/deprec/recipes/deprecated.rb