Sha256: 60d6c4887a6587feed913a038d13dc1143242177f1ba67ba679fb14c8df31c9a

Contents?: true

Size: 261 Bytes

Versions: 4

Compression:

Stored size: 261 Bytes

Contents

module Helpers
  module FileSystem
    def write_file(file_name, contents)
      write_directory(TMP_ROOT)
      ::File.open(file_name.to_s, 'w') {|f| f.write(contents) }
    end
    
    def write_directory(name)
      FileUtils.mkdir_p(name)
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
generator_spec-0.9.0 spec/support/file_system.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/generator_spec-0.8.7/spec/support/file_system.rb
generator_spec-0.8.7 spec/support/file_system.rb
generator_spec-0.8.6 spec/support/file_system.rb