Sha256: 87aac25ee572c34746ab0c72d2671104574a8fcdf1a6637896335fb00a2b7d68
Contents?: true
Size: 546 Bytes
Versions: 27
Compression:
Stored size: 546 Bytes
Contents
# frozen_string_literal: true require 'dato/dump/format' module Dato module Dump module Operation class CreateDataFile attr_reader :context, :path, :format, :value def initialize(context, path, format, value) @context = context @path = path @format = format @value = value end def perform File.open(File.join(context.path, path), 'w') do |file| file.write Format.dump(format, value) end end end end end end
Version data entries
27 entries across 27 versions & 1 rubygems