Sha256: 59dfb3a7761829b24011fbad52a723c1eec6e9147505225c5166f16702e0eaac
Contents?: true
Size: 773 Bytes
Versions: 11
Compression:
Stored size: 773 Bytes
Contents
# frozen_string_literal: true module RubyLeiningen module Commands module Mixins module Environment def initialize(opts = {}) super(opts) @environment = opts[:environment] end def for_environment(environment) @environment = environment self end def configure_command(builder, opts) builder = super(builder, opts) environment = opts[:environment] || @environment if environment builder = environment.to_a .inject(builder) do |b, environment_variable| b.with_environment_variable(*environment_variable) end end builder end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems