Files | Admin

Notes:

Release Name: 0.3

Notes:


Changes: - Box#bash and Dir#bash now take an optional :user argument, which uses sudo to execute the command as that user. Example: box.bash("/etc/init.d/nginx reload", :user => 'root') - Box#bash and Dir#bash now take an optional :env argument, which is a hash of environment variables used when executing the command. Example: dir.bash("mongrel_rails start", :env => { :RAILS_ENV => 'production' }) - The rush equivalent of chmod is Entry#access=. Example: file.access = { :user_can => :read_and_write, :group_and_other_can => :read } - File permissions can be read with Entry#access. This returns a hash with up to nine parameters (the 3x3 matrix of user/group/other read/write/execute). Example: file.access[:other_can_write]