summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Adding simple benchmarking, and using it in a few of the more obvious ↵luke2006-04-101-0/+37
| | | | | | places. Also, fixed a bug in Scope#gennode. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1098 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the class file to actually store class names, not object ids. Also ↵luke2006-04-041-0/+7
| | | | | | added tests to make sure it all stays that way. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1063 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing tests so they do not chmod /dev/null to 640 (stupid tests).luke2006-03-021-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@967 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #68. After tons and tons and tons of work, everything successfully ↵luke2006-03-021-4/+16
| | | | | | configures itself, and the --genmanifest argument should actually work. User and group creation will not necessarily work everywhere (in particular, Puppet uses dependencies to create the group first, but Fedora complains on user creation if the group already exists), but file and directory creation should. The only downside is that there is a decent amount of extra information printed on daemon startup, as the daemon checks its config; this could maybe be seen as a bonus, though, I guess. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@966 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing output when user/group are not foundluke2006-02-251-1/+13
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@946 980ebf18-57e1-0310-9a29-db15c13687c0
* Tracked down a few other bugs; everything now passes on debian in ↵luke2006-02-151-6/+39
| | | | | | preparation for 0.13.2 git-svn-id: https://reductivelabs.com/svn/puppet/trunk@914 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing users so that they can use a group created by Puppet, and they also ↵luke2006-02-151-53/+14
| | | | | | now autorequire that group. To do so, I modified Puppet::Util.gid, which required that I fix Puppet::Type#merge to support merging managed and umanaged objects, which required fixing a bug in Puppet::Type#managed?, and I also changed the ensure state to only default to a value, when the object is managed, which required that I change the defaults system to support default procs that do not return a value. In other words, lots of fixes for a smallish problem, but we are much better off now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@912 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing some problems with cron tab management, and creating ↵luke2006-02-131-55/+54
| | | | | | Puppet::Util.{u,g}id methods. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@898 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing locking. It apparently was not working on OS X, and I was not ↵luke2006-02-121-4/+54
| | | | | | syncronizing access in threads -- i assumed locks themselves were a sufficient sync point. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@897 980ebf18-57e1-0310-9a29-db15c13687c0
* There is now full support for configuration files, and the entire system has ↵luke2006-02-071-0/+47
| | | | | | been modified to expect their new behaviour. I have not yet run the test across all test hosts, though. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@873 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing class storage -- it was not working for nodescopesluke2006-01-301-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@858 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the event-loop stuff to the repository and switching to using it. ↵luke2006-01-241-1/+17
| | | | | | Also, breaking many classes out into their own class files. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@848 980ebf18-57e1-0310-9a29-db15c13687c0
* All tests pass now, although the lack of service support on os x means that ↵luke2006-01-091-1/+5
| | | | | | i have now disabled services on it git-svn-id: https://reductivelabs.com/svn/puppet/trunk@789 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging changes from the head of the rework1 branch, r 784luke2006-01-081-5/+14
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@787 980ebf18-57e1-0310-9a29-db15c13687c0
* Undoing the merge that happened in 785luke2006-01-071-5/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@786 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging in refactoring from version 774 into version 784luke2006-01-071-5/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@785 980ebf18-57e1-0310-9a29-db15c13687c0
* converting storage from Marshal to YAMLluke2006-01-031-4/+11
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@759 980ebf18-57e1-0310-9a29-db15c13687c0
* adding Util.lock, and switching storage to using itluke2006-01-021-0/+10
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@758 980ebf18-57e1-0310-9a29-db15c13687c0
* Mostly fixing exec so it either captures stderr or runs as a user; ↵luke2005-11-161-14/+2
| | | | | | Process.euid was not working correctly git-svn-id: https://reductivelabs.com/svn/puppet/trunk@743 980ebf18-57e1-0310-9a29-db15c13687c0
* Lots of refactoring, and added the capture_stderr methodluke2005-11-161-0/+37
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@742 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding "isomorphic?" method to classes, and testing for isomorphism before ↵luke2005-11-021-8/+12
| | | | | | throwing a conflict git-svn-id: https://reductivelabs.com/svn/puppet/trunk@741 980ebf18-57e1-0310-9a29-db15c13687c0
* files and directories are now created as the correct user and group if they ↵luke2005-10-231-3/+2
| | | | | | are set git-svn-id: https://reductivelabs.com/svn/puppet/trunk@727 980ebf18-57e1-0310-9a29-db15c13687c0
* The Puppet::Util.asuser function now works; had to slightly modify user.rb ↵luke2005-10-231-0/+110
to make checking work. In addition, exec.rb now takes advantage of it. I also decided to make a small change to type.rb -- validstates now only returns state names, not names and states. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@726 980ebf18-57e1-0310-9a29-db15c13687c0