Module: Moku::Bundleable

Included in:
Artifact, Release
Defined in:
lib/moku/bundleable.rb

Overview

A module that can be included in objects that have a bundler context.

Instance Method Summary collapse

Instance Method Details

#with_envObject

Evaluate some block in the context of this object's path, shedding our own bundler context.


10
11
12
13
14
15
16
# File 'lib/moku/bundleable.rb', line 10

def with_env
  Bundler.with_clean_env do
    Dir.chdir(path) do
      yield
    end
  end
end