Module: Mundler

Defined in:
lib/mundler.rb,
lib/mundler/cli.rb,
lib/mundler/dsl.rb,
lib/mundler/mruby.rb,
lib/mundler/config.rb,
lib/mundler/project.rb,
lib/mundler/version.rb,
lib/mundler/build_config.rb,
lib/mundler/clean_environment.rb

Defined Under Namespace

Classes: BuildConfig, CLI, CloneError, CompilationError, Config, DSL, MRuby, MundlefileNotFound, NotInstalledError, Project

Constant Summary collapse

VERSION =
"0.9.0"

Class Method Summary collapse

Class Method Details

.with_clean_env(&blk) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'lib/mundler/clean_environment.rb', line 2

def self.with_clean_env(&blk)
  if defined?(Bundler) && Bundler.respond_to?(:with_unbundled_env)
    Bundler.with_unbundled_env(&blk)
  elsif defined?(Bundler)
    Bundler.with_clean_env(&blk)
  else
    blk.call
  end
end