summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Some more graph optimizations; I think I am now close enough that I am ↵luke2006-12-174-51/+114
| | | | | | basically just going to spend a bit more time making sure the modeling is right in the transactions, and then walk away for now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1947 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a simpler and *much* faster tree_from_vertex method, and using it ↵luke2006-12-171-3/+43
| | | | | | instead of the default one git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1946 980ebf18-57e1-0310-9a29-db15c13687c0
* Requiring puppet/rails in the interpreter before Rails.initluke2006-12-171-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1945 980ebf18-57e1-0310-9a29-db15c13687c0
* Getting rid of the db init stdout and reindentingluke2006-12-171-52/+61
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1944 980ebf18-57e1-0310-9a29-db15c13687c0
* Simplifying the splitpath method a bit, altho it is still strangely slowluke2006-12-161-12/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1943 980ebf18-57e1-0310-9a29-db15c13687c0
* Simplifying the the Puppet::Type[] methodluke2006-12-161-7/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1942 980ebf18-57e1-0310-9a29-db15c13687c0
* Redoing the benchmarking a little bitluke2006-12-161-1/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1941 980ebf18-57e1-0310-9a29-db15c13687c0
* Go back to restype and remove STI classes, they were more trouble than they ↵shadoi2006-12-156-28/+11
| | | | | | were worth. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1940 980ebf18-57e1-0310-9a29-db15c13687c0
* Modifying rails testluke2006-12-151-3/+14
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1939 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing some of the error output. This gets rid of the duplicated ↵luke2006-12-152-8/+4
| | | | | | information that occurred when definitions or nodes were duplicately defined, and it tightens the error output a bit. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1938 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding unit test for #364. It passes on OS X.luke2006-12-151-0/+39
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1937 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding some selectability to host creation for testing. Using ↵luke2006-12-151-10/+40
| | | | | | find_or_create_by results in lots of saves instead of one big one at the end, which causes initial saving to be much slower. To switch between them, just modify the value of "create" at the top of Host.store. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1936 980ebf18-57e1-0310-9a29-db15c13687c0
* I like to checkin one-liners a lot. I'm cool. shadoi2006-12-151-2/+1
| | | | | | | set the type when we create the object, might be a bit faster git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1935 980ebf18-57e1-0310-9a29-db15c13687c0
* Don't use find_or_create_by_title since titles aren't unique.shadoi2006-12-151-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1934 980ebf18-57e1-0310-9a29-db15c13687c0
* Remove old files, don't require pp anymoreshadoi2006-12-153-49/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1933 980ebf18-57e1-0310-9a29-db15c13687c0
* These are the same versions from changeset 1837shadoi2006-12-152-26/+33
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1932 980ebf18-57e1-0310-9a29-db15c13687c0
* Some rails modificationsluke2006-12-155-71/+38
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1931 980ebf18-57e1-0310-9a29-db15c13687c0
* Don't dump out debugging stuff.shadoi2006-12-151-2/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1930 980ebf18-57e1-0310-9a29-db15c13687c0
* Don't symbolize the param namesshadoi2006-12-151-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1929 980ebf18-57e1-0310-9a29-db15c13687c0
* Rename some stuff I missed when it was revertedshadoi2006-12-151-3/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1928 980ebf18-57e1-0310-9a29-db15c13687c0
* acts_as_taggable pluginshadoi2006-12-145-0/+119
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1927 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving the mount provider tests into a subdir, and fixing the basedir ↵luke2006-12-143-16/+3
| | | | | | calculation in tests so it does not matter where the test is called from git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1926 980ebf18-57e1-0310-9a29-db15c13687c0
* New rails stuff redux.shadoi2006-12-1421-86/+316
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1925 980ebf18-57e1-0310-9a29-db15c13687c0
* Small changes to the test rakefile. This rakefile still is not completely ↵luke2006-12-141-2/+2
| | | | | | satisfactory, as I cannot use it to load all libs but only run on test method, which is often important when trying to track down a bug that only occurs when multiple files are loaded. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1924 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix service.list, in particular for the redhat providerlutter2006-12-142-5/+12
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1923 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing painfully difficult to find bug in defining exported resourcesluke2006-12-142-9/+16
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1922 980ebf18-57e1-0310-9a29-db15c13687c0
* Reworking the package tests. Now providers are tested individuallyluke2006-12-1410-503/+323
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1921 980ebf18-57e1-0310-9a29-db15c13687c0
* Rewriting the test rakefile so test directories can be more than one ↵luke2006-12-143-41/+56
| | | | | | directory deep. This will be particularly useful for providers. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1920 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix up the filelist for gems, so that all of lib/puppet gets put into the ↵mpalmer2006-12-131-1/+1
| | | | | | gem, not just the top-level .rb files git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1919 980ebf18-57e1-0310-9a29-db15c13687c0
* Another round of bug fixing. Now everything passes except mounts, at least ↵luke2006-12-1312-312/+39
| | | | | | on OS X. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1918 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the next round of bugs, mostly little things but I had to modify ↵luke2006-12-138-26/+65
| | | | | | transactions so they are willing to delete implicit resources even if they have dependencies, else we would often not be able to purge files at all. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1917 980ebf18-57e1-0310-9a29-db15c13687c0
* Never default to rpm provider; use up2date on RedHat. This also works on ↵lutter2006-12-132-1/+1
| | | | | | RHEL5, which does not have up2date, the provider properly fails over to using yum git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1916 980ebf18-57e1-0310-9a29-db15c13687c0
* You can now use the "resources" type to purge resources. I still need to ↵luke2006-12-134-10/+42
| | | | | | modify transactions so they do not purge resources that have relationships. Also, apparently the noop metaparam was never actually working; now it is, and there is a test for it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1915 980ebf18-57e1-0310-9a29-db15c13687c0
* adding a note about facter to the faqluke2006-12-121-0/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1914 980ebf18-57e1-0310-9a29-db15c13687c0
* Change the filelist slightly so that the externally-included lib/rake ↵mpalmer2006-12-121-1/+2
| | | | | | doesn't end up in the gem git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1913 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a metatype to manage resources of a specified type. For now, this ↵luke2006-12-127-10/+203
| | | | | | metatype just supports purging unmanaged resources. Also, fixed a few tests here and there git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1912 980ebf18-57e1-0310-9a29-db15c13687c0
* Working some on the export/collect problem. It actually works now, but ↵luke2006-12-1211-50/+133
| | | | | | there are not yet sufficient tests for it, so I will leave the bug open until we have got the new work in place. I also added a "rails" feature, so I do not have to keep testing whether ActiveRecord is defined. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1911 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a short note on variable interpolationluke2006-12-121-0/+14
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1910 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a bit of clarity about file locationsluke2006-12-122-68/+56
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1909 980ebf18-57e1-0310-9a29-db15c13687c0
* Add a task to build Debian packages more-or-less 'directly' out of SVN.mpalmer2006-12-121-0/+26
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1908 980ebf18-57e1-0310-9a29-db15c13687c0
* Add external Rake task file as an svn:external, and modify the Rakefile to ↵mpalmer2006-12-111-0/+2
| | | | | | add lib to the load path git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1907 980ebf18-57e1-0310-9a29-db15c13687c0
* All tests should now pass, with the possible exception of some tests that ↵luke2006-12-114-90/+42
| | | | | | might fail when all tests are run in one process. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1906 980ebf18-57e1-0310-9a29-db15c13687c0
* Almost all tests now pass. I have basically reached the point where I was ↵luke2006-12-1110-29/+161
| | | | | | before I integrated graphing, except that all of the relationship handling is now inside the transaction, and any kind of recursion (including file) is *tons* easier to model and manage. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1905 980ebf18-57e1-0310-9a29-db15c13687c0
* Most tests now pass in the whole system, but there are still about 8 cases ↵luke2006-12-118-4/+67
| | | | | | that do not work. I am working on those now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1904 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the explicit load for most types in type.rbluke2006-12-102-11/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1903 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the reference to the symlink typeluke2006-12-101-1/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1902 980ebf18-57e1-0310-9a29-db15c13687c0
* Most of the graph handling is now done, and all of the recursive types ↵luke2006-12-1022-569/+395
| | | | | | (basically just file, tidy, and component) now correctly use the generation mechanisms in the transactions, instead of sticking them in their @children array. Now I just need to go through the rest of the tests and make sure everything passes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1901 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the symlink type finally.luke2006-12-102-306/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1900 980ebf18-57e1-0310-9a29-db15c13687c0
* Another intermediate commit. Most of the graphing work itself is now done, ↵luke2006-12-0914-406/+1078
| | | | | | but I am in the middle of converting files to use the graphs and at the same time am writing some actually decent tests for the file recursion stuff. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1899 980ebf18-57e1-0310-9a29-db15c13687c0
* adding note about --no-clientluke2006-12-061-0/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1898 980ebf18-57e1-0310-9a29-db15c13687c0