Sha256: cd3628b544254e602f12d0254c0e38ccb9ae530ba4df2afdea56c50726e16970

Contents?: true

Size: 322 Bytes

Versions: 2

Compression:

Stored size: 322 Bytes

Contents

# frozen_string_literal: true

module Deadpull
  module Values
    class S3Path < Base
      extend Dry::Initializer

      param :local_root
      param :local_path
      param :s3_prefix

      def concretize
        [s3_prefix, RootRelativePath.concretize(local_root, local_path)].join('/')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
deadpull-0.1.1 lib/deadpull/values/s3_path.rb
deadpull-0.1.0 lib/deadpull/values/s3_path.rb