Sha256: 365b385fc92f940015b91986b24f510e3ea77b64da3f13a4246e7d747838e1dd

Contents?: true

Size: 279 Bytes

Versions: 2

Compression:

Stored size: 279 Bytes

Contents

$0 = "wp2mm"
ARGV.clear

module CLIHelpers
  def capture(stream)
    begin
      stream = stream.to_s
      eval "$#{stream} = StringIO.new"
      yield
      result = eval("$#{stream}").string
    ensure
      eval("$#{stream} = #{stream.upcase}")
    end

    result
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wp2middleman-0.0.3 spec/support/cli_helpers.rb
wp2middleman-0.0.2 spec/support/cli_helpers.rb