Sha256: e2009244ffee8ab0dfbf0827df3520269ad190128ace24406a38f1455c346fd4

Contents?: true

Size: 312 Bytes

Versions: 5

Compression:

Stored size: 312 Bytes

Contents

require 'stringio'
require 'rubygems'
require 'capistrano/logger'

class CapistranoMock

  def logbuf
    @logbuf ||= StringIO.new
  end

  def logger
    if @logger.nil?
      @logger = Capistrano::Logger.new :output=>logbuf
      @logger.level = Capistrano::Logger::MAX_LEVEL
    end
    @logger
  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
joekhoobyar-capsaicin-0.1.6 test/helper.rb
joekhoobyar-capsaicin-0.1.7 test/helper.rb
capsaicin-0.1.8 test/helper.rb
capsaicin-0.1.6 test/helper.rb
capsaicin-0.1.7 test/helper.rb