Method: Casper::Entity::DeployService#make_deploy

Defined in:
lib/entity/deploy.rb

#make_deploy(deploy_hash, header, payment, session, approvals) ⇒ Deploy

Parameters:

  • deploy_hash (String)

    the hash of Deploy

  • header (Hash)

    the header of Deploy

  • payment (Hash)

    the payment of Deploy

  • session (Hash)

    the session of Deploy

  • approvals (Array<DeployApproval>)

    the approval list of Deploy

Returns:



92
93
94
95
96
97
98
99
100
# File 'lib/entity/deploy.rb', line 92

def make_deploy(deploy_hash, header, payment, session, approvals)
  @header = Casper::Entity::DeployHeader.new(header)
  @payment = payment
  @session = session
  @body_hash = deploy_body_hash(payment, session)
  @header.set_body_hash(@body_hash)
  @deploy_hash = deploy_hash(@header)
  @deploy = Deploy.new(@deploy_hash, @header.to_hash, @payment, @session, approvals)
end