Class: Deploy::DeploymentStep

Inherits:
Resource
  • Object
show all
Defined in:
lib/deploy/resources/deployment_step.rb

Instance Attribute Summary

Attributes inherited from Resource

#attributes, #errors, #id

Instance Method Summary collapse

Methods inherited from Resource

class_name, collection_path, #create, #destroy, find, find_all, find_single, member_path, #method_missing, #new_record?, post, #post, #respond_to_missing?, #save, #update

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Deploy::Resource

Instance Method Details

#default_paramsObject



6
7
8
# File 'lib/deploy/resources/deployment_step.rb', line 6

def default_params
  { deployment: deployment, project: deployment.project }
end

#logs(params = {}) ⇒ Object



10
11
12
13
# File 'lib/deploy/resources/deployment_step.rb', line 10

def logs(params = {})
  params = default_params.merge(step: self).merge(params)
  DeploymentStepLog.find(:all, params)
end