Class: Gem::Release::Context::Paths::ByNames

Inherits:
Base
  • Object
show all
Defined in:
lib/gem/release/context/paths.rb

Instance Attribute Summary

Attributes inherited from Base

#names, #opts

Instance Method Summary collapse

Methods inherited from Base

#current, #cwd, #in_dir

Instance Method Details

#in_dirs(&block) ⇒ Object


22
23
24
25
26
27
# File 'lib/gem/release/context/paths.rb', line 22

def in_dirs(&block)
  dirs.each do |dir, name|
    dir.mkdir unless dir == cwd || dir.exist?
    in_dir(dir) { yield name }
  end
end