crafterm / sprinkle

Sprinkle is a software provisioning tool you can use to build remote servers with. eg. to install a Rails, or Sinatra stack on a brand new slice directly after its been created

This URL has Read+Write access

sprinkle / spec / spec_helper.rb
100644 18 lines (15 sloc) 0.302 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
begin
  require 'spec'
rescue LoadError
  require 'rubygems'
  gem 'rspec'
  require 'spec'
end
 
$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'sprinkle'
 
module Kernel
  def logger
    @@__log_file__ ||= StringIO.new
    @@__log__ = ActiveSupport::BufferedLogger.new @@__log_file__
  end
end