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.62.0 sub/avm/lib/avm/data/package/build_directory.rb
eac_tools-0.61.1 sub/avm/lib/avm/data/package/build_directory.rb
eac_tools-0.61.0 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.67.1 lib/avm/data/package/build_directory.rb
eac_tools-0.60.3 sub/avm/lib/avm/data/package/build_directory.rb
eac_tools-0.60.2 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.67.0 lib/avm/data/package/build_directory.rb
eac_tools-0.60.1 sub/avm/lib/avm/data/package/build_directory.rb