summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser/compile.rb
Commit message (Collapse)AuthorAgeFilesLines
* Changing the name of the Compile class to Compiler,Luke Kanies2008-02-111-535/+0
| | | | | since it's stupid to have a class named after a verb.
* Refactoring the interface between the Compile classLuke Kanies2008-02-111-26/+15
| | | | | and the AST::Node class to match that to the definitions and AST classes.
* Changing some methods in the Compile class toLuke Kanies2008-02-111-20/+20
| | | | | be more internally consistent (switched store_resource to add_resource, and store_override to add_override).
* Fixed #1030 - class and definition evaluation has been significantlyLuke Kanies2008-02-111-113/+93
| | | | | | refactored, fixing this problem and making the whole interplay between the classes, definitions, and nodes, and the Compile class much cleaner.
* Converting the Compile class to use a Node::Catalog instanceLuke Kanies2008-02-111-30/+13
| | | | | as its resource container, instead of having its own behaviour around resource uniqueness.
* Moving all of the tests for Puppet::Parser::Compile toLuke Kanies2008-02-111-31/+333
| | | | | | rspec, so I can refactor the class to more heavily rely on a Node::Catalog instead of doing its own resource container management.
* Fixing #971 -- classes can once again be included multipleLuke Kanies2008-01-071-1/+14
| | | | times.
* Renaming 'configuration' to 'catalog', fixing #954.Luke Kanies2007-12-111-11/+11
|
* Fixing the first part of #787. Not all collections wereLuke Kanies2007-11-201-0/+25
| | | | | | | | being evaluated on the first pass because they were being deleted from the collections list during evaluation, which caused some to get skipped. This commit fixes that problem, which helps in the trivial cases where the collections are in the same scope. I expect it's still broken for more complicated usages.
* Moving some compile tests to the spec/ directory, andLuke Kanies2007-11-121-0/+100
| | | | | | | | | | | | switching the node scope to no longer be lazy evaluation, just like I switched 'main'. When I made all of these classes and nodes lazy evaluated, I should have decoupled my real goal (using resources to evaluate them) from the idea of lazy-evaluating them, and this basically does that. I also changed the scope heirarchy slightly so that scopes will tend to be below the node scope, altho this was already generally the case.
* Switching the class resource evaluation to only happenLuke Kanies2007-11-081-6/+12
| | | | | when using :include, not (for example) when evaluating node classes.
* Classes once again get evaluated immediately when theLuke Kanies2007-11-081-12/+87
| | | | | | | | | | 'include' function is used, instead of being lazy-evaluated. Previous work caused resources to get created to model these classes, but in the process, I removed the fact that the classes were evaluated immediately. This meant that you couldn't guarantee that a class was evaluated before you went to use its variables.
* This commit is focused on getting the 'puppet' executableLuke Kanies2007-10-051-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | to work. As a result, it involves a lot of integration-level testing, and a lot of small design changes to make the code actually work. In particular, indirections can now have default termini, so that configurations and facts default to their code terminus Also, I've removed the ability to manually control whether ast nodes are used. I might need to add it back in later, but if so it will be in the form of a global setting, rather than the previous system of passing it through 10 different classes. Instead, the parser detects whether there are AST nodes defined and requires them if so or ignores them if not. About 75 tests are still failing in the main set of tests, but it's going to be a long slog to get them working -- there are significant design issues around them, as most of the failures are a result of tests trying to emulate both the client and server sides of a connection, which normally would have different fact termini but in this case must have the same terminus just because they're in the same process and are global. The next step, then, is to figure that process out, thus finding a way to make this all work.
* Flipped the switch so that compiles now return a Configuration instance ↵Luke Kanies2007-09-041-8/+12
| | | | instead of pre-extracting the configuration.
* Deleting old documentation that somehow made it back into the tree in the ↵Luke Kanies2007-09-011-0/+48
| | | | switch to git, and refactoring the evaluate_classes method on the compile object so I can use resources as intermediaries, thus making classes do late-binding evaluation.
* Removing this test for now; I do not have time to port it from test/unit to ↵Luke Kanies2007-08-251-755/+0
| | | | rspec
* Renaming the "configuration" object to "compile", because it is only a ↵Luke Kanies2007-08-251-0/+755
transitional object and I want the real "configuration" object to be the thing that I pass from the server to the client; it will be a subclass of GRATR::Digraph.