Module: Dapp::Deployment::Config::Directive::Mod::Jobs

Included in:
Deployment
Defined in:
lib/dapp/deployment/config/directive/mod/jobs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_before_apply_jobObject (readonly)

Returns the value of attribute _before_apply_job.



7
8
9
# File 'lib/dapp/deployment/config/directive/mod/jobs.rb', line 7

def _before_apply_job
  @_before_apply_job
end

#_bootstrapObject (readonly)

Returns the value of attribute _bootstrap.



7
8
9
# File 'lib/dapp/deployment/config/directive/mod/jobs.rb', line 7

def _bootstrap
  @_bootstrap
end

Instance Method Details

#before_apply_job(&blk) ⇒ Object



13
14
15
# File 'lib/dapp/deployment/config/directive/mod/jobs.rb', line 13

def before_apply_job(&blk)
  directive_eval(_before_apply_job, &blk)
end

#bootstrap(&blk) ⇒ Object



9
10
11
# File 'lib/dapp/deployment/config/directive/mod/jobs.rb', line 9

def bootstrap(&blk)
  directive_eval(_bootstrap, &blk)
end

#jobs_init_variables!Object



17
18
19
20
# File 'lib/dapp/deployment/config/directive/mod/jobs.rb', line 17

def jobs_init_variables!
  @_bootstrap        = Directive::Job.new(dapp: dapp)
  @_before_apply_job = Directive::Job.new(dapp: dapp)
end