Sha256: e03c049a4bd95247d9b1ad4de7d0292043ca514e699c6ae22ff496f0e91565f8

Contents?: true

Size: 790 Bytes

Versions: 33

Compression:

Stored size: 790 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 Directory < ::Avm::Git::Commit::Deploy::Appended::Base
            attr_reader :source_path

            def initialize(deploy, source_path)
              super(deploy)
              @source_path = source_path
            end

            def copy_to_build_dir
              raise 'Variables source not set' if deploy.variables_source.blank?

              ::EacRubyUtils::Templates::Directory.new(source_path).apply(
                deploy.variables_source,
                deploy.build_dir
              )
            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/directory.rb
avm-tools-0.74.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.73.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.72.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.71.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.70.2 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.70.1 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.70.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.69.3 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.69.2 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.69.1 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.69.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.68.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.67.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.66.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.65.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.64.2 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.64.1 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.64.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.63.0 lib/avm/git/commit/deploy/appended/directory.rb