Class: ProjectService
- Inherits:
-
Object
- Object
- ProjectService
- Defined in:
- lib/uffizzi/services/project_service.rb
Class Method Summary collapse
Class Method Details
.describe_project(project, output_format) ⇒ Object
5 6 7 |
# File 'lib/uffizzi/services/project_service.rb', line 5 def describe_project(project, output_format) json_format?(output_format) ? output_in_json(project) : output_in_pretty_format(project) end |
.select_active_deployments(project) ⇒ Object
9 10 11 |
# File 'lib/uffizzi/services/project_service.rb', line 9 def select_active_deployments(project) project[:deployments].select { |deployment| deployment[:state] == 'active' } end |