Sha256: 4532b7dffab7f4acda3de7fde619687556f506b42ab789deb645f4ff51b3a1b4

Contents?: true

Size: 888 Bytes

Versions: 33

Compression:

Stored size: 888 Bytes

Contents

# frozen_string_literal: true

module Avm
  module Git
    class Commit
      class Deploy
        module Appended
          require_sub __FILE__

          def appended
            @appended ||= []
          end

          def append_directory(directory)
            appended << ::Avm::Git::Commit::Deploy::Appended::Directory.new(self, directory)
            self
          end

          def append_directories(directories)
            directories.each { |directory| append_directory(directory) }
            self
          end

          def append_file_content(target_path, content)
            appended << ::Avm::Git::Commit::Deploy::Appended::FileContent
                        .new(self, target_path, content)
            self
          end

          def copy_appended_content
            appended.each(&:copy_to_build_dir)
          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.rb
avm-tools-0.74.0 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.73.0 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.72.0 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.71.0 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.70.2 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.70.1 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.70.0 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.69.3 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.69.2 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.69.1 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.69.0 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.68.0 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.67.0 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.66.0 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.65.0 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.64.2 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.64.1 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.64.0 lib/avm/git/commit/deploy/appended.rb
avm-tools-0.63.0 lib/avm/git/commit/deploy/appended.rb