lib/codeowner_validator/helpers/utility_helper.rb
def in_folder(folder)
      raise "The folder location '#{folder}' does not exists" unless File.directory?(folder)

      if defined?(Bundler)
        Bundler.with_clean_env do
          Dir.chdir folder do
            yield
          end
        end
      else
        Dir.chdir folder do
          yield
        end
      end
    end
# Provides a way to change the current working directory to a different folder location.
# This ability can ease the reference of file references when working with multiple
# repository locations.
#
# @raise [RuntimeError] if the folder location does not exist.
Provides a way to change the current working directory to a different folder location.
This ability can ease the reference of file references when working with multiple
repository locations.
Provides a way to change the current working directory to a different folder location . This ability can ease the reference of file references when working with multiple repository locations .
def in_folder(folder)
      raise "The folder location '#{folder}' does not exists" unless File.directory?(folder)
      if defined?(Bundler)
        Bundler.with_clean_env do
          Dir.chdir folder do
            yield
          end
        end
      else
        Dir.chdir folder do
          yield
        end
      end
    end
def in_folder ( folder ) raise "The folder location '#{folder}' does not exists" unless File . directory? ( folder ) if defined? ( Bundler ) Bundler . with_clean_env do Dir . chdir folder do yield end end else Dir . chdir folder do yield end end end
Provides a way to change the current working directory to a different folder location.
Provides a way to change the current working directory to a different folder location .
[RuntimeError] if the folder location does not exist.
[ RuntimeError ] if the folder location does not exist .
folder