This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# half a fix | |
$ git diff ./lib/puppet/face/parser.rb | |
diff --git a/lib/puppet/face/parser.rb b/lib/puppet/face/parser.rb | |
index 3242fac..93642f7 100644 | |
--- a/lib/puppet/face/parser.rb | |
+++ b/lib/puppet/face/parser.rb | |
@@ -42,8 +42,12 @@ Puppet::Face.define(:parser, '0.0.1') do | |
end | |
end | |
files.each do |file| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/puppet-lint/plugins/check_resources.rb b/lib/puppet-lint/plugins/check_resources.rb | |
index 3e52c04..20c1f9d 100644 | |
--- a/lib/puppet-lint/plugins/check_resources.rb | |
+++ b/lib/puppet-lint/plugins/check_resources.rb | |
@@ -183,4 +183,41 @@ class PuppetLint::Plugins::CheckResources < PuppetLint::CheckPlugin | |
end | |
end | |
end | |
+ | |
+ # Public: Check the content line for each File resource instance for a Puppet Module |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat foo.pp | |
class foo { | |
File { | |
mode => 544, | |
} | |
file { '/tmp/foo': | |
mode => 544, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
methodList = [method for method in dir(conduit) if callable(getattr(conduit, method))] | |
for method in methodList: | |
print method | |
for method in methodList: | |
print "\n".join([ "%s %s", method, str(getattr(conduit, method).__doc__) ]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env stap | |
global signals_sent | |
global processes | |
probe signal.send { | |
printf("%s was sent to %s (pid:%d) by %s\n", | |
sig_name, pid_name, sig_pid, execname()) | |
signals_sent++ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: puppetwrappers | |
Package Checks | |
Scenario: Confirming package installation | |
When a machine has been puppeted | |
Then the bash package should be installed. | |
Scenario: Confirm bash package is absent | |
When a machine has been puppeted | |
Then the bash package should not be installed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[dwilson@xeny ~]$ diff -u /usr/bin/facter facter-wildcard | |
--- /usr/bin/facter 2010-08-28 17:38:56.000000000 +0100 | |
+++ facter-wildcard 2010-12-29 13:19:42.278609734 +0000 | |
@@ -139,12 +139,15 @@ | |
unless names.empty? | |
facts = {} | |
names.each { |name| | |
- begin | |
- facts[name] = Facter.value(name) | |
- rescue => error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: http://www.unixdaemon.net/ response headers | |
Scenario: Server header should be production quality | |
When I fetch http://www.unixdaemon.net/ | |
Then the "Server" header should be "Apache" | |
Scenario: Response header should contain an Etag | |
When I fetch http://www.unixdaemon.net/ | |
Then the response should contain the "Etag" header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package File::Find::Rule::Dpkg; | |
# must get back to this at some point. | |
use strict; | |
use warnings; | |
use vars qw/$VERSION/; | |
use base 'File::Find::Rule'; | |
$VERSION = '0.01'; |
NewerOlder