Module: Avm::Rspec::Setup::Launcher

Defined in:
lib/avm/rspec/setup/launcher.rb

Instance Method Summary collapse

Instance Method Details

#temp_launcher_context(settings_file = nil) ⇒ Object



11
12
13
14
15
16
# File 'lib/avm/rspec/setup/launcher.rb', line 11

def temp_launcher_context(settings_file = nil)
  settings_file ||= temp_file
  ::Avm::Launcher::Context.current = ::Avm::Launcher::Context.new(
    projects_root: ::Dir.mktmpdir, settings_file: settings_file, cache_root: ::Dir.mktmpdir
  )
end