Sha256: 60cfe328278dc7c4cfc0a6ee31c6439ae73b1c1322713fd14c23af644bf3c71f
Contents?: true
Size: 551 Bytes
Versions: 202
Compression:
Stored size: 551 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' require 'avm/files/appendable/resource_base' module Avm module Files module Appendable class FileContent < ::Avm::Files::Appendable::ResourceBase attr_reader :target_path, :content def initialize(deploy, target_path, content) super(deploy) @target_path = target_path @content = content end def write_on(target_dir) target_dir.join(target_path).write(content) end end end end end
Version data entries
202 entries across 202 versions & 4 rubygems