| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
| |
Since it is no longer possible to find the running executable from the
call stack, docs have to be kept somewhere in the source tree.
Of course, at this point, we shouldn't be using RDoc::Usage at all.
|
|
|
|
|
|
|
|
|
|
| |
This mostly modifies autoloading to look for files ending in either 'pp' or
'rb' using Dir globing with {,.pp,.rb} or .{pp,rb} as appropriate. It could
easily be extended to add support for other formats (e.g. xml) by adding them
to the globs (though, if this were to be done often, having a centralized list
of supported extensions would be a good (and easy) refactor).
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
|
|
|
|
|
|
|
|
|
| |
consistent type
Currently, we cannot trust Puppet::Util::Settings to return values of
any particular type for a given setting.
This patch makes sure that we explicitly cast to string when checking for
empty values.
|
|
|
|
|
| |
This patch updates the earlier #4180 patches to support both the old and
the new module structures.
|
| |
|
|
|
|
| |
Thanks to Daniel Grafe for the patch
|
|
|
|
|
|
|
|
|
| |
Ensuring "defined" on a mount just demands that the entry appears in the
fstab file.
Ensure "present" is now an alias for ensure "defined", so drives are no
longer unmounted unless the resource is set to ensure "unmounted"
This patch is based on a patch submitted by Aurelien Degremont.
|
| |
|
| |
|
|
|
|
|
|
| |
Oracle has a maximum VARCHAR (string) column length of 255 characters. Any
column that is larger than 255 characters needs to be cast as a :text column
instead of :string.
|
|
|
|
|
|
|
| |
This is Luke's patch plus a change to fix a test that it broke. It creates
a new sub-scope off the top scope, called "settings" and adds each of the
environment's settings to it as variables, thus satisfying the ticket while
taking us one step further from being able to implement futures. *sigh*
|
|
|
|
|
|
|
|
| |
RDoc's parser produces errors on this sort of statement:
def (variable).method
This patch wraps our occurances of those definitions with comments that
suspend RDoc parsing.
|
|
|
|
|
| |
This patch (via Nicholas Veeser) adds more debugging when SSL cert
verification fails.
|
|
|
|
|
| |
The logic which iterates over the searchpath in reverse does not translate the name.
Therefore file overrides in :master or :agent are not picked up.
|
|
|
|
|
|
| |
[4123] [4124] - combined unit test for both fixes since they share some common code.
proper unit tests to verify features for both patches.
|
|
|
|
|
|
| |
Added hasstatus => true as attribute for new provider instance in init.
redhat checks the hasstatus in the provider to determine service status.
|
|
|
|
|
|
|
|
| |
filenames to exclude when processing defpath.
also updated redhat provider to pass in a list of services to ignore.
didnt need to munch exclude to an array, include? is safe to call on strings
|
|
|
|
|
|
| |
The initial commit changed the name of a method (close -> close_all) and
changed the way the array log destination worked before we saw that the
unit tests were using it differently.
|
|
|
|
|
| |
The log will now queue any log messages created when there is no
destination, and will flush the queue when a destination is added.
|
|
|
|
|
|
|
|
| |
This patch introduces Type#retrieve_resource as a wrapper for
Type#resource, to coerce the return value from legacy types from Hash to
Resource.
Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
|
|
|
|
| |
Reworked it to use the new key_attributes instead.
|
|
|
|
| |
This patch is from Joe McDonagh <joseph.e.mcdonagh@gmail.com>
|
|
|
|
|
| |
Changed the error message when searching for an Application constant
which is undefined.
|
|
|
|
|
|
| |
By asking the environment for known resources instead of creating a type
collection ourselves, we avoid accidentally creating two
Resource::TypeCollection objects.
|
|
|
|
|
|
| |
The hook for storeconfig will now require 'puppet/rails' if the setting
is set to true. It was previously being indirectly required via
parser/interpreter, which was removed.
|
| |
|
|
|
|
|
| |
We had a hardcoded assumption that the version number would always start with
a zero, and thus were failing to recognise 2.6.0 as greater than 0.25.x
|
|
|
|
| |
Somehow one use of JSON escaped the global find and replace of PSON --> JSON.
|
| |
|
|
|
|
|
| |
Our settings were slow because I was querying Application objects for
their run_mode repetitively
|
|
|
|
|
|
| |
Added a Puppet::Util::Settings layer called :mutable_defaults to emulate
the interaction between Puppet::Application and defaults.rb that was
getting thwarted by rspec.
|
|
|
|
|
|
|
| |
assert their run_mode
Also cleanup of an unecessary puts line, make master tests run when
on their own, and moving a require to a more usual spot.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Previously, any failed call to Puppet::Application.find would result
in an error being raised by const_get, resulting in a messy crash with
a stack trace. Now that error is handled, and the application will
print a message and exit.
|
|
|
|
|
|
| |
Notify was returning a nil current value, rather than :absent,
which caused puppet to think the message had been changed from
blank to its new value, rather than defined as that value.
|
|
|
|
|
| |
The describe and resource (ralsh) applications required puppet, creating a
loop & thus crashing them.
|
|
|
|
|
|
|
| |
RunMode is only created once instead of every time it's called
Got lots of unpredictable test failures, presumably because a new
RunMode was being created every time we accessed the RunMode.
|
| |
|
|
|
|
|
| |
Along the way this fixes an issue with 2.6 alpha that sections of the
puppet config file were getting ignored.
|
|
|
|
|
|
|
|
| |
Mode is a terribly overused word. Files use it, puppetdoc uses it, and
certs use it, and those are just the places that I happened to
stumble upon. It makes reading code very confusing and finding things
in code difficult. I know namespacing allows us to reuse words for
method and variable names, but that doesn't mean we should.
|
|
|
|
|
|
| |
Per Luke's replacement of :check with :audit, and deprecation of :check,
I've replaced all of our internal uses of :check with :audit. Importantly,
this silence the deprecation warnings during regular usage from eg. ralsh.
|
| |
|
| |
|
|
|
|
| |
I'm also going to update the wiki to mention sqlite is a test dependency
|
|
|
|
| |
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
|
|
|
|
|
|
|
|
| |
We were looking only to the class hierarchies when trying to find an
ancestor to the current type. Thus we were never trying to climb up
the hierarchy of nodes when evaluating nodes.
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
|
|
|
|
|
|
|
|
| |
During the refactoring of AST hostclass/node to non AST objects, we lost
the fact that the main class already comes with a scope (ie the top one),
so when we evaluate its code we shouldn't create a subscope for it.
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
|