Class: Polyamory::Runner::BundlerJob

Inherits:
Struct
  • Object
show all
Defined in:
lib/polyamory/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#jobObject

Returns the value of attribute job

Returns:

  • (Object)

    the current value of job



55
56
57
# File 'lib/polyamory/runner.rb', line 55

def job
  @job
end

Instance Method Details

#envObject



56
# File 'lib/polyamory/runner.rb', line 56

def env() job.env end

#to_execObject



57
# File 'lib/polyamory/runner.rb', line 57

def to_exec() ['bundle', 'exec', *job.to_exec] end

#to_sObject



58
# File 'lib/polyamory/runner.rb', line 58

def to_s() "bundle exec #{job.to_s}" end