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/util/monkey_patches.rb b/lib/puppet/util/monkey_patches.rb | |
| index 7ce1ccc..a9db622 100644 | |
| --- a/lib/puppet/util/monkey_patches.rb | |
| +++ b/lib/puppet/util/monkey_patches.rb | |
| @@ -1,4 +1,4 @@ | |
| -Process.maxgroups = 1024 | |
| +#Process.maxgroups = 1024 | |
| module RDoc | |
| def self.caller(skip=nil) | |
| in_gem_wrapper = false |
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
| # syslog | |
| class syslog { | |
| file { | |
| "/etc/cron.daily/sysklogd": | |
| ensure => absent; | |
| } | |
| file { | |
| "/etc/syslog.conf": | |
| owner => root, group => adm, mode => 0640, | |
| ensure => 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
| rule "Captain" | |
| when | |
| // does the achievement has already been granted to player | |
| p : MMPlayerImpl() | |
| a : Achievement() from achievementList.get("CPT") | |
| not ( PlayerAchievement( achievement.id == a.id ) from achievementRepository.getPlayerAchievements( p.getWebsiteID() ) ) | |
| // player should be First Lieutenant | |
| PlayerAchievement( achievement.tag == "1LT" ) from achievementRepository.getPlayerAchievements( p.getWebsiteID() ) |
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
| class file_filler { | |
| define filled_file($content='') { | |
| file { $name: } | |
| case $content { | |
| '': { File[$name] { content => "I was filled\n" } } | |
| default: { File[$name] { content => $content } | |
| } | |
| } | |
| filled_file { ["/tmp/a", "/tmp/b"]: } | |
| } |
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
| file { "/etc/nginx/$name": | |
| ensure => $ensure, | |
| mode => 0644, owner => root, group => 0, | |
| checksum => md5, | |
| require => Package[$nginx_package], | |
| notify => Exec["reload-nginx"] | |
| } | |
| case $source { | |
| '': { } |
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
| $validator->expects($this->once()) | |
| ->method('isValid')->id(1) | |
| ->with($this->equalTo('test1')) | |
| ->will($this->returnValue(true)); | |
| $validator->expects($this->once()) | |
| ->after(1) | |
| ->method('isValid') | |
| ->with($this->equalTo('test2')) | |
| ->will($this->returnValue(true)); |
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 com.daysofwonder.mm.achievements | |
| import MMPlayerImpl; | |
| import Side; | |
| import Achievement; | |
| import AchievementRepository; | |
| global AchievementRepository achievementRepository; | |
| global java.util.List achievementList; |
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/perl -w | |
| BEGIN { | |
| require 'mysql-agent'; | |
| } | |
| use Data::Dumper; | |
| use Test::More tests => 9; | |
| $innodb_parser = InnoDBParser->new; |
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
| # checkout 0.25.1 git | |
| git clone git://github.com/reductivelabs/puppet.git | |
| cd puppet | |
| # start bisecting | |
| # we suspect the problem is a parser issue | |
| # so we'll focus only on the parser | |
| git bisect start 0.24.8 0.25.1 -- lib/puppet/parser |
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/parser/resource.rb b/lib/puppet/parser/resource.rb | |
| index b8aaf27..00af282 100644 | |
| --- a/lib/puppet/parser/resource.rb | |
| +++ b/lib/puppet/parser/resource.rb | |
| @@ -131,6 +131,10 @@ class Puppet::Parser::Resource | |
| raise ArgumentError, "Resources require a type and title" | |
| end | |
| + if title.is_a?(String) and title.empty? | |
| + raise Puppet::ParseError.new("Empty title", options[:line], options[:file]) |