Class: EYCli::Model::Deployment
- Inherits:
-
Base
- Object
- Hashie::Mash
- Base
- EYCli::Model::Deployment
show all
- Defined in:
- lib/ey_cli/models/deployment.rb
Class Method Summary
collapse
Methods inherited from Base
all, base_path, child_path, class_name, collection_path, #convert_value, create, create_collection_path, find, find_by_name, resolve_child_path
#parse, #smarty
Class Method Details
.deploy_path(app, environment) ⇒ Object
6
7
8
|
# File 'lib/ey_cli/models/deployment.rb', line 6
def self.deploy_path(app, environment)
collection_path([app.id, environment.id]) + '/deploy'
end
|
.last_deployment(app, environment) ⇒ Object
10
11
12
13
14
15
|
# File 'lib/ey_cli/models/deployment.rb', line 10
def self.last_deployment(app, environment)
find(app.id, environment.id, 'last')
rescue Faraday::Error::ClientError => e raise e unless e.response[:status] == 404
nil
end
|