Sha256: 9e56a5cc3bef10af6dbcc21d96b3cfcb04786d781b3192f5f2acd1b34c136441
Contents?: true
Size: 716 Bytes
Versions: 16
Compression:
Stored size: 716 Bytes
Contents
module RubyFly 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
16 entries across 16 versions & 1 rubygems