Public Gists by lak

Gravatar
Thu Jul 23 00:19:46 -0700 2009
1
2
3
Exec { path => "/usr/bin:/usr/sbin:/bin" }
 
class cc { notify { 'cc': } }
Gravatar
Sun Jul 05 22:16:47 -0700 2009
1
2
3
#!/usr/bin/ruby
 
class Metric
Gravatar
Sun Jul 05 20:01:14 -0700 2009
1
2
3
class BaseTesting
    STORE = :data_mapper
    def initialize
Gravatar
Sun Jul 05 16:46:49 -0700 2009
1
2
3
class SortedWalking
    class Vertex
        attr_accessor :weight, :label
Gravatar
Sun Jul 05 16:46:45 -0700 2009
1
2
3
class RailsBenchmarking
    BRANCHES = %w{rails/new rails/normal rails/new_no_accum}
 
Gravatar
Sun Jul 05 16:46:41 -0700 2009
1
2
3
require 'json'
class JsonTester
    def self.from_json(text)
Gravatar
Sun Jul 05 16:46:37 -0700 2009
1
2
3
class ChecksumTesting
    require 'digest/md5'
    require 'benchmark'
Gravatar
Sun Jul 05 16:46:34 -0700 2009
1
2
3
class BaseTesting
    STORE = :data_mapper
    def initialize
Gravatar
Sun Jul 05 16:41:33 -0700 2009
1
2
3
#!/usr/bin/ruby
 
class ConstantTest
Gravatar
Tue Apr 21 15:01:42 -0700 2009
1
2
3
diff --git a/lib/puppet/resource/catalog.rb b/lib/puppet/resource/catalog.rb
index 88aa951..cb0ce03 100644
--- a/lib/puppet/resource/catalog.rb
Gravatar
Thu Mar 19 10:51:56 -0700 2009
1
2
3
class One
    attr_reader :two
 
gist: 77811 A simple script that behave...
Gravatar
Wed Mar 11 16:11:28 -0700 2009
1
2
3
#!/usr/bin/ruby -w
 
require 'getoptlong'
Gravatar
Mon Mar 09 16:30:33 -0700 2009
1
2
3
class filesystems {
    file { "/etc/exports.d":
        ensure => directory,
Gravatar
Mon Feb 23 09:03:31 -0800 2009
1
2
3
define cronallow($members) {
  file { $name: content => template("..."), ensure => present, ... }
}
Gravatar
Mon Feb 16 09:58:15 -0800 2009
1
2
3
/Users/luke/puppet/lib/puppet/util/settings.rb:62:in `optparse_addargs': undefined method `args=' for Puppet:Module (NoMethodError)
from /Users/luke/puppet/lib/puppet/application.rb:251:in `parse_options'
from /Users/luke/puppet/lib/puppet/application.rb:214:in `run'
Gravatar
Fri Feb 13 09:30:37 -0800 2009
1
2
3
# /etc/puppet/modules/tomcat/manifests
 
class tomcat6 {
Gravatar
Fri Feb 13 08:53:07 -0800 2009
1
2
3
/etc/puppet/modules/tomcat6.
manifests
init.pp
Gravatar
Thu Feb 12 12:32:26 -0800 2009
1
2
3
#!/usr/bin/ruby
 
require 'puppet'
Gravatar
Wed Feb 11 12:08:45 -0800 2009
1
2
3
diff --git a/lib/puppet/network/xmlrpc/client.rb b/lib/puppet/network/xmlrpc/client.rb
index 37ace21..33771d5 100644
--- a/lib/puppet/network/xmlrpc/client.rb