Module: SpinalTap
- Defined in:
- lib/spinal_tap.rb,
lib/spinal_tap/server.rb,
lib/spinal_tap/history.rb,
lib/spinal_tap/version.rb,
lib/spinal_tap/cmd_line.rb,
lib/spinal_tap/client_helpers.rb
Defined Under Namespace
Modules: ClientHelpers
Classes: BindingWrapper, CmdLine, History, Server
Constant Summary
collapse
- VERSION =
'0.2.0'
Class Method Summary
collapse
Class Method Details
.server ⇒ Object
24
25
26
|
# File 'lib/spinal_tap.rb', line 24
def self.server
@server
end
|
.start(params = {}) ⇒ Object
8
9
10
11
12
13
|
# File 'lib/spinal_tap.rb', line 8
def self.start(params = {})
return false if @server
@server = SpinalTap::Server.new(params)
@server.start
end
|
.stop ⇒ Object
15
16
17
18
19
20
21
22
|
# File 'lib/spinal_tap.rb', line 15
def self.stop
return false unless @server
result = @server.stop
@server = nil
result
end
|