rails/guides
Daniele Sluijters 851f8c1023 atomicc.rb: Don't assume we may chown/chmod a file.
Previously this code just assumed it is capable of changing the file
ownership, both user and group. This will fail in a lot of scenario's
unless:
* The process is run as a superuser (root);
* The owning user and group are already set to the user and group we're
  trying to chown to;
* The user chown'ing only changes the group to another group it is a
  member of.
If either of those conditions are not met the filesystem will simply
deny the operation throwing an error.

It is also not always possible to do a chmod, there might be a SELinux
policy or another limitation preventing the user to change the file
mode. To this end the chmod call has also been added to the rescue
block.

I've also added a little comment above the chmod command that doing a
chmod on a file which has an ACL set will cause the ACL to be
recalculated / modified.
2012-10-29 10:04:59 +01:00
..
assets [Guides] Format content for small devices 2012-10-06 16:40:51 -04:00
code/getting_started 1.9 hash syntax changes 2012-10-13 17:19:03 +02:00
rails_guides Revert "Change with start of translation in internationalization, this time with pt_br." 2012-10-17 10:19:31 -03:00
source atomicc.rb: Don't assume we may chown/chmod a file. 2012-10-29 10:04:59 +01:00
CHANGELOG.md registers the JS guide in the CHANGELOG [ci skip] 2012-10-23 22:23:52 +02:00
rails_guides.rb No more Textile guide generation support 2012-09-17 15:55:17 -04:00
Rakefile No more Textile guide generation support 2012-09-17 15:55:17 -04:00
w3c_validator.rb Add exception handling to rake guides:validate 2012-08-24 12:06:44 +02:00