Changeset 78

Show
Ignore:
Timestamp:
06/15/07 14:31:55 (2 years ago)
Author:
mbailey
Message:

added tasks :change_root_password and :change_root_password_as_root

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1-7-stable/lib/deprec/recipes.rb

    r73 r78  
    345345    as_root { setup_admin_account } 
    346346  end  
     347   
     348  desc "Change password for the root account" 
     349  task :change_root_password do 
     350    sudo_with_input("passwd root", /UNIX password/) # ??? how many  versions of the prompt are there? 
     351  end 
     352 
     353  task :change_root_password_as_root do 
     354    as_root { change_root_password } 
     355  end 
    347356 
    348357