class Rmails::Runner

Public Class Methods

new() click to toggle source
# File lib/rmails/runner.rb, line 10
def initialize
  @passwords = []
  @interpreter = AutomateIt.new(:project => "system")
  @interpreter.include_in(self)
  @interpreter.set :rake_task, Rake::Task
  @interpreter.set :rails_root, Rails.root
end

Public Instance Methods

start() click to toggle source
# File lib/rmails/runner.rb, line 18
def start
  @interpreter.sh 'thin restart -C /etc/thin/rmails.yml'
end
stop() click to toggle source
# File lib/rmails/runner.rb, line 22
def stop
  @interpreter.sh 'thin stop -C /etc/thin/rmails.yml'
end