My Recent Pastes (74 and counting)

Pastes by lak (74 and counting)

Below are the 15 most recent pasties by lak.

May 14, 2008
10:34PM EDT
by lak

describe Puppet::Report.report(:tagmail) do
  before do
    @report_module = Puppet::Report.report(:tagmail)
    @processor = Object.new
    @processor.extend(@report_module)

April 25, 2008
11:47AM EDT
by lak

require 'puppet'

Puppet.settings.parse_config

Puppet::Node.terminus_class = :ldap

March 27, 2008
11:25AM EDT
by lak

luke@phage(0) $ cat ~/bin/test.pp
#!/usr/bin/env puppet --verbose

mymod::subdir::test { yay: }
luke@phage(0) $ cat ~/tmp/modules/main/mymod/

March 24, 2008
1:47PM EDT
by lak

# vim: syntax=ruby
# From http://pastie.caboo.se/115692, linked from rickbradley

require 'autotest/redgreen'
require 'autotest/timestamp'

March 19, 2008
11:42PM EDT
by lak

#!/usr/bin/ruby

require 'puppet'
Puppet[:confdir] = "/tmp/catesting"
Puppet[:vardir] = "/tmp/catesting"

March 19, 2008
4:17PM EDT
by lak

class Base
    @stuff = []
    def self.<<(item)
        @stuff << item
        @stuff

March 19, 2008
4:12PM EDT
by lak

class Base
    @name = :base
    def self.name
        @name
    end 

March 19, 2008
12:52AM EDT
by lak

# in /usr/lib/ruby/1.8/xmlrpc/server.rb

  #
  # method dispatch
  #

March 18, 2008
2:51PM EDT
by lak

class vau{
    notify { testing: message => "this is a test" }
}

class gd inherits vau{

March 06, 2008
11:23AM EDT
by lak

diff --git a/lib/puppet/node/catalog.rb b/lib/puppet/node/catalog.rb
index f885a41..7d380c5 100644
--- a/lib/puppet/node/catalog.rb
+++ b/lib/puppet/node/catalog.rb
@@ -475,6 +475,10 @@ class Puppet::Node::Catalog < Puppet::PGraph

March 04, 2008
1:02PM EDT
by lak

diff --git a/lib/puppet/util/settings.rb b/lib/puppet/util/settings.rb
index a91b0d6..576aeaf 100644
--- a/lib/puppet/util/settings.rb
+++ b/lib/puppet/util/settings.rb
@@ -78,7 +78,7 @@ class Puppet::Util::Settings

February 14, 2008
6:27PM EDT
by lak

export PINK="^[[0;31m"
export GREEN="^[[0;32m"
export YELLOW="^[[0;33m"
export SLATE="^[[0;34m"
export ORANGE="^[[0;35m"

February 14, 2008
6:13PM EDT
by lak

class test {
    @notify { "eh": }
}   

include test

January 15, 2008
3:21PM EDT
by lak

/Users/luke/puppet/lib/puppet/util/plist/parser.rb:44:in `tag_start'
/Users/luke/puppet/lib/puppet/util/plist/parser.rb:96:in `parse'
/Users/luke/puppet/lib/puppet/util/plist/parser.rb:28:in `parse_xml'
/Users/luke/puppet/lib/puppet/provider/package/pkgdmg.rb:148:in `installpkgdmg'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:32:in `open_uri_original_open'

January 15, 2008
3:10PM EDT
by lak

/Users/luke/puppet/lib/puppet/util/plist/parser.rb:67: warning: already initialized constant TEXT
/Users/luke/puppet/lib/puppet/util/plist/parser.rb:68: warning: already initialized constant XMLDECL_PATTERN
/Users/luke/puppet/lib/puppet/util/plist/parser.rb:69: warning: already initialized constant DOCTYPE_PATTERN
/Users/luke/puppet/lib/puppet/util/plist/parser.rb:70: warning: already initialized constant COMMENT_START
/Users/luke/puppet/lib/puppet/util/plist/parser.rb:71: warning: already initialized constant COMMENT_END

Next page

Previous page