Class: AppMainBase

Inherits:
Object
  • Object
show all
Defined in:
lib/template/server_app_base.rb

Direct Known Subclasses

MyApp

Instance Method Summary collapse

Constructor Details

#initializeAppMainBase

Returns a new instance of AppMainBase.



3
4
5
6
7
8
# File 'lib/template/server_app_base.rb', line 3

def initialize
  @config = nil
  @aboet = false
  @exec = false
  @suspend = false
end

Instance Method Details

#resumeObject



27
28
29
# File 'lib/template/server_app_base.rb', line 27

def resume()
  @suspend = false
end

#set_config(config) ⇒ Object



10
11
12
# File 'lib/template/server_app_base.rb', line 10

def set_config(config)
  @config = config
end

#start(argv) ⇒ Object



14
15
16
# File 'lib/template/server_app_base.rb', line 14

def start(argv)
  @exec = true
end

#stopObject



18
19
20
21
# File 'lib/template/server_app_base.rb', line 18

def stop()
  @abort = true
  @exec = false
end

#suspendObject



23
24
25
# File 'lib/template/server_app_base.rb', line 23

def suspend()
  @suspend = true
end