Class: Deploy::DeploymentStepLog

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

Instance Attribute Summary

Attributes inherited from Resource

#attributes, #errors, #id

Class Method Summary collapse

Methods inherited from Resource

class_name, #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

Class Method Details

.collection_path(params = {}) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/deploy/resources/deployment_step_log.rb', line 6

def self.collection_path(params = {})
  permalink = params[:project].permalink
  project_identifier = params[:project].identifier
  step_identifier = params[:step].identifier

  "projects/#{permalink}/deployments/#{project_identifier}/steps/#{step_identifier}/logs"
end