My Recent Pastes (74 and counting)
Pastes by lak (74 and counting)
Below are the 15 most recent pasties by lak.
August 23, 2007
2:34AM EDT
by lak
View all 92 lines
#!/usr/bin/env ruby $:.unshift("../lib").unshift("../../lib") if __FILE__ =~ /\.rb$/ require 'spec'
August 21, 2007
10:56AM EDT
by lak
View all 121 lines
PuppetShop =========== This documention describes a web-based application to facilitate the sharing of Puppet recipes, with the possibility of using it to share
August 20, 2007
12:52AM EDT
by lak
View all 33 lines
# MySQL (default setup). Versions 4.1 and 5.0 are recommended. # # Install the MySQL driver: # gem install mysql # On MacOS X:
August 17, 2007
5:27PM EDT
by lak
View all 21 lines
namespace :branches => :environment do updates = [] Branch.find_all.each do |branch| name = "update:%s" % branch.name # Create the checkout task; the name is the file # created by performing the checkout. file branch.path do puts "Checking out %s" % branch.desc begin branch.checkout rescue => detail $stderr.puts detail end
August 17, 2007
2:51PM EDT
by lak
View all 121 lines
PuppetShop =========== This documention describes a web-based application to facilitate the sharing of Puppet recipes, with the possibility of using it to share
August 17, 2007
1:06AM EDT
by lak
View all 41 lines
# the method # Verify that all passed parameters are valid. This throws an error if # there's a problem, so we don't have to worry about the return value. def paramcheck(param) param = param.to_s
August 17, 2007
1:02AM EDT
by lak
View all 9 lines
1) Failure: test_paramcheck(TestResource) [/Users/luke/git/puppet/lib/puppet/parser/resource.rb:200:in `paramcheck' ./resource.rb:170:in `test_paramcheck']: #<Mock:class>.validattr?('name') - expected calls: 0, actual calls: 1
August 16, 2007
11:56PM EDT
by lak
View all 38 lines
def initialize(options) # Set all of the options we can. options.each do |option, value| if respond_to?(option.to_s + "=") send(option.to_s + "=", value)
August 16, 2007
3:24PM EDT
by lak
View all 14 lines
[2:16pm] lak: i haven't updated it in a long time [2:16pm] holoway: you are welcome to see HJK's, if you want [2:16pm] lak: i'm not worried about NDA-like stuff at all [2:16pm] lak: i'm the process of turning the last two years' experience into a more realistic business plan [2:16pm] holoway: but puppet has been a great boon to me, so if my business geekery could help you out, I would love to
August 16, 2007
12:27PM EDT
by lak
View all 20 lines
config.expects(:evaluate_collections).returns(true).then.returns(false) p config.evaluate_collections p config.evaluate_collections =>
August 15, 2007
5:18PM EDT
by lak
View all 121 lines
PuppetShop =========== This documention describes a web-based application to facilitate the sharing of Puppet recipes, with the possibility of using it to share
August 15, 2007
5:02PM EDT
by lak
View all 9 lines
# The file (~/bin/test.pp):
#!/usr/bin/env puppet
file { "/tmp/testingness": content => "testing", mode => 755 }
August 14, 2007
10:37AM EDT
by lak
View all 10 lines
record_line :parsed, :fields => %w{source destination}, :block_eval => :instance do def process(line) record = {:ensure => :present} ...turn line into record... end
August 13, 2007
11:48AM EDT
by lak
View all 9 lines
kermit: 0.22.1 grover: 0.22.2 (No milestone): 0.22.3 (No milestone): 0.22.4 fozzie: 0.23.0
August 09, 2007
10:35PM EDT
by lak
View all 780 lines
(in /Users/luke/svn/puppet/trunk/test) Skipping service testing on Darwin Loaded suite /Users/luke/svn/puppet/trunk/test/lib/rake/puppet_test_loader Started EF.......................................................................................F................................................................................................................E......................................................................................................................................FEFF.......................................................................................E.............................................................................................................................E.F.F..E....................................................F...........................EEEEEEEEEEEE......................................FF...FF..............EE........................E..........................................................................................................................................EFFFFFFFFF..........................F............
