summaryrefslogtreecommitdiffstats
path: root/spec/unit/module.rb
Commit message (Collapse)AuthorAgeFilesLines
* Using the logging utilities to clean up module warningsLuke Kanies2009-06-191-1/+15
| | | | | | | This just makes it easier to add context to warnings and other logs from the module. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing #1064 - Deprecating module 'plugins' directoriesLuke Kanies2009-06-191-8/+32
| | | | | | | | | You should now use 'lib' instead of 'plugins'. The old directory still works, but you get a warning for every module that uses it. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing #2323 - Modules use environments correctlyLuke Kanies2009-06-121-3/+5
| | | | | | | | Previously, modules were not using their environments when looking up their paths, which meant that they often found files in the wrong environment. Signed-off-by: Luke Kanies <luke@madstop.com>
* Modules now can find their own pathsLuke Kanies2009-05-151-40/+158
| | | | | | | | | | | | Previously, when you created a module you had to specify the path. Now Module instances can use the module path to look up their paths, and there are methods for determining whether the module is present (if the path is present). Also cleaned up the methods for figuring out what's in the module (plugins, etc.). Signed-off-by: Luke Kanies <luke@madstop.com>
* Moving file-searching code out of Puppet::ModuleLuke Kanies2009-05-151-179/+0
| | | | | | | | | | The Module class had a bunch of code for finding manifests and templates even when not in a module, and it complicated the class unnecessarily. This moves that code to a new, hackish-but-sufficient module for just that purpose. Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding pluginsyncing support to the IndirectorLuke Kanies2009-02-191-0/+6
| | | | | | | | | This switches away from the use of terminii for each type of fileserving - it goes back to the traditional fileserving method, and is much cleaner and simpler as a result. Signed-off-by: Luke Kanies <luke@madstop.com>
* Using the Environments to handle a lot of Module searchingLuke Kanies2009-02-181-81/+55
| | | | | | | | | | Since Environments now know how to look for modules, a lot of the Module code was able to be pushed into them. Also moving some of the tests to instance-level tests, rather than just testing the class-level interfaces. Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding support for finding all modules in a given path.Luke Kanies2009-02-181-0/+87
| | | | | | | | This 'each_module' method will be used by environments to find all or a given module, and will likely eventually be used internally, too. Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding new methods to Puppet::Module.Luke Kanies2009-02-181-0/+37
| | | | | | | | | | | | There are now boolean methods to test whether a given kind of file is present in a given module. E.g, you can do: Puppet::Module.new("mod", "/my/path").plugins? There are also accessor-style methods that return the full path for a given kind of file. Signed-off-by: Luke Kanies <luke@madstop.com>
* Refactoring Puppet::Module a bit.Luke Kanies2009-02-181-5/+5
| | | | | | | No behaviour change here, just some internal changes to make way for methods I want to add. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixes #1773 - no longer check for absolute pathsThom May2008-11-291-0/+6
|
* Fix regression when templatedir doesn't exist.Brice Figureau2008-10-081-0/+13
| | | | | | | | When searching for a module template and if the default templatedir is inexistant, puppet was raising an error without trying the modules templates directories. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Bug #1550 - Rework to avoid regressing rspec tests, add new rspec tests for ↵Paul Nasrat2008-09-201-3/+24
| | | | | | templatedir as a path Signed-off-by: Paul Nasrat <pnasrat@googlemail.com>
* Fixing #1438 -- mongrel and module tests now pass.Luke Kanies2008-07-201-2/+2
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixed #1012 - templates in the templatedir are preferred to module templates.Luke Kanies2008-06-161-2/+11
|
* Fixing #1173 -- classes and definitions can now have the sameLuke Kanies2008-04-101-1/+1
| | | | name as a directory with no failures.
* Fixing #1173 -- classes and definitions can now have the sameLuke Kanies2008-04-101-0/+198
name as a directory with no failures.