Module: THC

Defined in:
lib/thc.rb,
lib/thc/rc.rb

Defined Under Namespace

Classes: RC

Constant Summary collapse

VERSION =
"0.0.5"
NAME =
"thc - Tor Hidden-Service Controller"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#serviceObject

Returns the value of attribute service.



11
12
13
# File 'lib/thc.rb', line 11

def service
  @service
end

Class Method Details

.countObject



26
27
28
# File 'lib/thc.rb', line 26

def self.count()
  @config.count
end

.load(path) ⇒ Object



16
17
18
19
20
21
22
23
24
# File 'lib/thc.rb', line 16

def self.load(path)
  path = if path != "" and path != nil then
    path
  else
    RC::DEFAULT_TORRC
  end
  RC.init(path)
  RC.load(@config)
end

.serviceObject



30
31
32
# File 'lib/thc.rb', line 30

def self.service()
  @config
end