Class: Malm::Main

Inherits:
Object
  • Object
show all
Defined in:
lib/malm/main.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Main

Returns a new instance of Main.



5
6
7
# File 'lib/malm/main.rb', line 5

def initialize(options={})
  options.each{|k,v| send("#{k}=", v)}
end

Instance Attribute Details

#logObject

Returns the value of attribute log.



3
4
5
# File 'lib/malm/main.rb', line 3

def log
  @log
end

#smtpportObject

Returns the value of attribute smtpport.



3
4
5
# File 'lib/malm/main.rb', line 3

def smtpport
  @smtpport
end

#webportObject

Returns the value of attribute webport.



3
4
5
# File 'lib/malm/main.rb', line 3

def webport
  @webport
end

Instance Method Details

#run!Object



9
10
11
12
13
# File 'lib/malm/main.rb', line 9

def run!
  create_db
  run_smtp!
  run_web!
end