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.62.4 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.62.3 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.62.2 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.62.1 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.62.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.61.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.60.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.59.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.58.1 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.58.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.57.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.56.0 lib/avm/git/commit/deploy/appended/directory.rb
avm-tools-0.55.0 lib/avm/git/commit/deploy/appended/directory.rb