Sha256: b07d1a0b4a3dff9efb63450b7dbe766fb1747b189914b075ac78b0fb5b3f3bf5

Contents?: true

Size: 200 Bytes

Versions: 7

Compression:

Stored size: 200 Bytes

Contents

module Munge
  module Writers
    class Filesystem
      def write(abspath, content)
        FileUtils.mkdir_p(File.dirname(abspath))

        File.write(abspath, content)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
munge-0.11.1 lib/munge/writers/filesystem.rb
munge-0.11.0 lib/munge/writers/filesystem.rb
munge-0.10.0 lib/munge/writers/filesystem.rb
munge-0.9.0 lib/munge/writers/filesystem.rb
munge-0.8.0 lib/munge/writers/filesystem.rb
munge-0.7.1 lib/munge/writers/filesystem.rb
munge-0.7.0 lib/munge/writers/filesystem.rb