Class: Deploy::DeploymentStep
- Defined in:
- lib/deploy/resources/deployment_step.rb
Instance Attribute Summary
Attributes inherited from Resource
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, #save, #update
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Deploy::Resource
Instance Method Details
#default_params ⇒ Object
3 4 5 |
# File 'lib/deploy/resources/deployment_step.rb', line 3 def default_params { deployment: self.deployment, project: self.deployment.project } end |
#logs(params = {}) ⇒ Object
7 8 9 10 |
# File 'lib/deploy/resources/deployment_step.rb', line 7 def logs(params = {}) params = default_params.merge(step: self).merge(params) DeploymentStepLog.find(:all, params) end |