summaryrefslogtreecommitdiffstats
path: root/spec/unit/facter.rb
Commit message (Collapse)AuthorAgeFilesLines
* [#4552] Apply patch from Dean WilsonRein Henrichs2010-10-041-0/+27
|
* introduce a warn mechanism for debuggingPeter Meier2009-11-071-0/+73
| | | | | We can now warn messages that will be passed to Kernel.warn if debugging is enabled.
* Fix bug where you'd get an 'undefined method' error if trying to access a ↵Diego Algorta2009-08-141-0/+16
| | | | fact's value when collection has not being yet initialized.
* Fixing indentation everywhereLuke Kanies2009-01-151-1/+1
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Removing old test/unit tests.Luke Kanies2008-05-201-582/+0
|
* Switching to a search path registration system.Luke Kanies2008-05-161-0/+25
| | | | | Facter no longer knows anything about Puppet, so there's no inter-dependency issue.
* Switching Facter to using the new loader.Luke Kanies2008-05-151-0/+26
| | | | | This should make it possible to move all facts to separate files and only load them on demand.
* Adding the 'each' method back into Facter.Luke Kanies2008-05-141-0/+5
| | | | | It's used by iClassify, and maybe others. I haven't made Facter enumerable again, but the collection is.
* Moving Facter's container behaviour into a separate class.Luke Kanies2008-05-141-28/+35
| | | | | | | | There's now no @@facts instance variable; instead, there's a collection, and it's responsible for keeping references to all of the facts. All of the old interface methods just delegate to the collection.
* Splitting the instance code into a Fact class.Luke Kanies2008-05-131-0/+12
| | | | | This allows the Facter class to become a module, and it is now much simpler.
* Splitting the different classes in Facter up, and adding some tests.Luke Kanies2008-05-131-23/+13
| | | | | The Confine and Resolution classes are now in separate files, and I've got tests for Confine.
* Switching from test/unit to rspec, and fixing a coupleLuke Kanies2008-02-171-0/+651
of small test failures.