5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/aptible/cli/subcommands/services.rb', line 5
def self.included(thor)
thor.class_eval do
include Helpers::App
desc 'services', 'List Services for an App'
app_options
def services
app = ensure_app(options)
first = true
app.each_service do |service|
say '' unless first
first = false
say "Service: #{service.process_type}"
say "Command: #{service.command || 'CMD'}"
say "Container Count: #{service.container_count}"
say "Container Size: #{service.container_memory_limit_mb}"
end
end
end
end
|