Sha256: f5c52987c585e32efa856f51f8e20346d56cf4a6595f1e731975a45f5a41d87b

Contents?: true

Size: 229 Bytes

Versions: 11

Compression:

Stored size: 229 Bytes

Contents

module Helpers
  module FileSystem
    def write_file(file_name, contents)
      ::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

11 entries across 11 versions & 2 rubygems

Version Path
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/generator_spec-0.8.5/spec/support/file_system.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/generator_spec-0.8.5/spec/support/file_system.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/generator_spec-0.8.5/spec/support/file_system.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/generator_spec-0.8.5/spec/support/file_system.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/generator_spec-0.8.5/spec/support/file_system.rb
generator_spec-0.8.5 spec/support/file_system.rb
generator_spec-0.8.4 spec/support/file_system.rb
generator_spec-0.8.3 spec/support/file_system.rb
generator_spec-0.8.2 spec/support/file_system.rb
generator_spec-0.8.1 spec/support/file_system.rb
generator_spec-0.8.0 spec/support/file_system.rb