summaryrefslogtreecommitdiffstats
path: root/test/language/ast/resource.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fixing most of the broken tests in test/Luke Kanies2010-02-171-58/+0
| | | | | | | | This involves a bit of refactoring in the rest of the code to make it all work, but most of the changes are fixing or removing old tests. Signed-off-by: Luke Kanies <luke@reductivelabs.com>
* Switching to LoadedCode from ASTSetLuke Kanies2009-07-051-1/+1
| | | | | | | | I also took the opportunity to clean up and simplify the interface to the parts of the parser that interact with this. Mostly it was method renames. Signed-off-by: Luke Kanies <luke@madstop.com>
* Changed tabs to spaces without interfering with indentation or alignmentIan Taylor2009-06-061-3/+3
|
* Changing the name of the Compile class to Compiler,Luke Kanies2008-02-111-1/+1
| | | | | since it's stupid to have a class named after a verb.
* Converting the Compile class to use a Node::Catalog instanceLuke Kanies2008-02-111-1/+0
| | | | | as its resource container, instead of having its own behaviour around resource uniqueness.
* Refactoring the AST classes just a bit. I realized thatLuke Kanies2008-02-081-5/+5
| | | | | | all of the evaluate() methods only ever accepted a scope, and sometimes one other option, so I switched them all to use named arguments instead of a hash.
* Theoretically, this patch is to fix #917 (which it does), butLuke Kanies2007-11-281-4/+4
| | | | | | | | | | | | | | | | | | | there were enough problems fixing it that I decided something more drastic needed to be done. This uses the new Puppet::ResourceReference class to canonize what a resource reference looks like and how to retrieve resources via their references. Specifically, it guarantees that resource types are always capitalized, even when they include '::' in them. While many files are modified in this commit, the majority of changes are quite small, and most of the changes are fixing the tests to use capitalized types. As we look at consolidating some of our resource types, we could consolidate the ResourceReference stuff at the same time, but at least the Puppet::Parser::ResourceReference class subclasses the main Puppet::ResourceReference class.
* Changing the test/ classes so that they work from the mainLuke Kanies2007-10-261-1/+1
| | | | | | test/ dir or from their own working dir, like the specs do. This was just a question of changing how their libraries are loaded.
* Renaming some ast resource classes and files so they make a lot more sense.Luke Kanies2007-09-061-0/+59