Class: Malm::Main
- Inherits:
-
Object
- Object
- Malm::Main
- Defined in:
- lib/malm/main.rb
Instance Attribute Summary collapse
-
#log ⇒ Object
Returns the value of attribute log.
-
#smtpport ⇒ Object
Returns the value of attribute smtpport.
-
#webport ⇒ Object
Returns the value of attribute webport.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Main
constructor
A new instance of Main.
- #run! ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Main
Returns a new instance of Main.
5 6 7 |
# File 'lib/malm/main.rb', line 5 def initialize(={}) .each{|k,v| send("#{k}=", v)} end |
Instance Attribute Details
#log ⇒ Object
Returns the value of attribute log.
3 4 5 |
# File 'lib/malm/main.rb', line 3 def log @log end |
#smtpport ⇒ Object
Returns the value of attribute smtpport.
3 4 5 |
# File 'lib/malm/main.rb', line 3 def smtpport @smtpport end |
#webport ⇒ Object
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 |