-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.rb
45 lines (35 loc) · 936 Bytes
/
common.rb
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
=begin
--------------------------------------------------------------------------------
Stuff that all of the main scripts want to do:
require the helper scripts
create some global variables
set up some handy global methods
--------------------------------------------------------------------------------
=end
#
# Helpful classes and utility methods.
#
class UserInputError < StandardError
end
class SettingsError < StandardError
end
def warning(message)
puts("WARNING: #{message}")
end
module Kernel
def bogus(message)
puts(">>>>>>>>>>>>>BOGUS #{message}")
end
end
require 'fileutils'
require 'distro'
require 'hash_monkey_patch'
require 'instance'
require 'knowledge_base'
require 'property_file_reader'
require 'running_tomcats'
require 'site'
require 'template_processor'
require 'tomcat'
$settings_file = ENV['HOME']+'/.instance-control.properties'
$instance = Instance.from_settings_file($settings_file)