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
avm-0.94.0 lib/avm/data/package/build_directory.rb
eac_tools-0.94.0 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.93.0 lib/avm/data/package/build_directory.rb
eac_tools-0.92.0 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.92.0 lib/avm/data/package/build_directory.rb
eac_tools-0.91.0 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.90.1 lib/avm/data/package/build_directory.rb
eac_tools-0.87.1 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.90.0 lib/avm/data/package/build_directory.rb
eac_tools-0.87.0 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.89.0 lib/avm/data/package/build_directory.rb
eac_tools-0.86.12 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.88.0 lib/avm/data/package/build_directory.rb
eac_tools-0.86.11 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.87.0 lib/avm/data/package/build_directory.rb
eac_tools-0.86.8 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.86.2 lib/avm/data/package/build_directory.rb
eac_tools-0.86.7 sub/avm/lib/avm/data/package/build_directory.rb
avm-0.86.1 lib/avm/data/package/build_directory.rb
eac_tools-0.86.5 sub/avm/lib/avm/data/package/build_directory.rb