Sha256: f8a25f0890845d17fa7f2d4f607015109c5a7f27b5b09e2d1bfb660e24ce70ca

Contents?: true

Size: 596 Bytes

Versions: 88

Compression:

Stored size: 596 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/fs/temp'
require 'eac_ruby_utils/core_ext'

module Avm
  module Data
    class Package
      module BuildDirectory
        private

        attr_writer :build_directory

        # @return [EacRubyUtils::Fs::Temp::Directory]
        def build_directory
          @build_directory || raise('@build_directory is blank')
        end

        def on_build_directory
          ::EacRubyUtils::Fs::Temp.on_directory do |directory|
            self.build_directory = directory
            yield
          end
        end
      end
    end
  end
end

Version data entries

88 entries across 88 versions & 2 rubygems

Version Path
eac_tools-0.69.1 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.75.0 lib/avm/data/package/build_directory.rb
eac_tools-0.69.0 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.74.0 lib/avm/data/package/build_directory.rb
eac_tools-0.68.0 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.73.1 lib/avm/data/package/build_directory.rb
eac_tools-0.67.1 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.73.0 lib/avm/data/package/build_directory.rb
eac_tools-0.67.0 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.72.0 lib/avm/data/package/build_directory.rb
eac_tools-0.66.0 sub/avm/lib/avm/data/package/build_directory.rb
eac_tools-0.65.1 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.71.0 lib/avm/data/package/build_directory.rb
eac_tools-0.65.0 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.70.0 lib/avm/data/package/build_directory.rb
eac_tools-0.64.0 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.69.0 lib/avm/data/package/build_directory.rb
eac_tools-0.63.0 sub/avm/lib/avm/data/package/build_directory.rb
eac_tools-0.62.1 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.68.0 lib/avm/data/package/build_directory.rb