Sha256: 5e4da3ad98266b1047e96c0379bbd2560c321a3e4f6ae551ea8b193100a78dfa

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

require 'fileutils'

Before :demo do
  clear_working_directory!
end

When "consisting of the following entires" do |text|
  text.split(/\s+/).each do |file|
    if /\/$/ =~ file
      FileUtils.mkdir_p(file) unless File.directory?(file)
    else
      File.open(file, 'w+'){ |f| f << "SAMPLE #{file}".upcase }
    end
  end
end

When "Let's say we have a Ratch script called '(((.*?)))'" do |file, text|
  File.open(file, 'w'){ |f| f << text }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ratch-1.2.0 spec/applique/setup.rb