Class: Shiro::Deployment

Inherits:
Object
  • Object
show all
Defined in:
lib/shiro/deployment.rb

Class Method Summary collapse

Class Method Details

.clientObject



13
14
15
# File 'lib/shiro/deployment.rb', line 13

def self.client
  @client ||= Client.new
end

.listObject



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

def self.list
  client.get("/deployments").parsed_response
end

.retrieve(id) ⇒ Object



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

def self.retrieve(id)
  client.get("/deployments/#{id}").parsed_response
end