2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/cf/cli/start/target_prettifier.rb', line 2
def self.prettify(client, outputter)
target = nil
version = nil
current_user_email = nil
current_space_name = nil
current_org_name = nil
if client
target = client.target
version = client.version
current_user = client.current_user
current_space = client.current_space
current_org = client.current_organization
current_user_email = current_user.email if current_user
current_space_name = current_space.name if current_space
current_org_name = current_org.name if current_org
end
outputter.line("Target Information (where will apps be pushed):")
outputter.line(" CF instance: #{print_var(target, outputter)} (API version: #{print_var(version, outputter)})")
outputter.line(" user: #{print_var(current_user_email, outputter)}")
outputter.line(" target app space: #{print_var(current_space_name, outputter)} (org: #{print_var(current_org_name, outputter)})")
end
|