-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patht_show_status.rb
More file actions
executable file
·56 lines (44 loc) · 1.16 KB
/
Copy patht_show_status.rb
File metadata and controls
executable file
·56 lines (44 loc) · 1.16 KB
1
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#! /usr/bin/ruby
=begin
--------------------------------------------------------------------------------
Show the state of the current instance, and what other Tomcats are running.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
=end
$: << File.dirname(File.expand_path(__FILE__))
require 'common'
def show_instance_info()
puts "Instance:"
puts " #{$instance.filename} -- #{$instance.props.description}"
end
def show_tomcat_status()
puts $instance.tomcat.status_line
RunningTomcats.new().summarize_except_for($instance.tomcat)
end
def show_distro_status()
puts "Source: "
puts $instance.distro.status
end
def show_kb_status()
puts "Data: "
puts " #{$instance.knowledge_base}"
end
def separator()
puts
puts "------------------------------------------------------------"
puts
end
#
# ---------------------------------------------------------
# MAIN ROUTINE
# ---------------------------------------------------------
#
separator()
show_instance_info()
puts
show_tomcat_status()
puts
show_distro_status()
puts
show_kb_status()
separator()