Sha256: 1899d278876b502531d9631179aa0604a9cc878c832ffeac53ec266f033c60bd

Contents?: true

Size: 673 Bytes

Versions: 33

Compression:

Stored size: 673 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'
require 'avm/git/commit/deploy/appended/base'

module Avm
  module Git
    class Commit
      class Deploy
        module Appended
          class FileContent < ::Avm::Git::Commit::Deploy::Appended::Base
            attr_reader :target_path, :content

            def initialize(deploy, target_path, content)
              super(deploy)
              @target_path = target_path
              @content = content
            end

            def copy_to_build_dir
              deploy.build_dir.to_pathname.join(target_path).write(content)
            end
          end
        end
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
avm-tools-0.74.1 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.74.0 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.73.0 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.72.0 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.71.0 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.70.2 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.70.1 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.70.0 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.69.3 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.69.2 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.69.1 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.69.0 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.68.0 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.67.0 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.66.0 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.65.0 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.64.2 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.64.1 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.64.0 lib/avm/git/commit/deploy/appended/file_content.rb
avm-tools-0.63.0 lib/avm/git/commit/deploy/appended/file_content.rb