Class: Deployment

Inherits:
RightResource::Base show all
Defined in:
lib/right_resource/deployment.rb

Instance Attribute Summary

Attributes inherited from RightResource::Base

#attributes, #id

Class Method Summary collapse

Methods inherited from RightResource::Base

collection_path, connection, connection=, create, #destory, destory, element_path, format, format=, generate_attributes, headers, index, #initialize, #load_accessor, #loads, logger, logger=, #new?, resource_id, resource_name, #save, show, status, update, #update_attributes

Constructor Details

This class inherits a constructor from RightResource::Base

Class Method Details

.duplicate(id) ⇒ Object



11
12
13
# File 'lib/right_resource/deployment.rb', line 11

def duplicate(id)
  connection.post(element_path(id, :duplicate))
end

.start_all(id) ⇒ Object



3
4
5
# File 'lib/right_resource/deployment.rb', line 3

def start_all(id)
  connection.post(element_path(id, :start_all))
end

.stop_all(id) ⇒ Object



7
8
9
# File 'lib/right_resource/deployment.rb', line 7

def stop_all(id)
  connection.post(element_path(id, :stop_all))
end