Class: RedmineInstaller::Configuration::SendMail

Inherits:
Base
  • Object
show all
Defined in:
lib/redmine-installer/configuration.rb

Constant Summary

Constants included from Utils

Utils::PROGRESSBAR_FORMAT

Instance Method Summary collapse

Methods inherited from Base

#build, #initialize, #make_config

Methods included from Utils

#class_name, #create_dir, #env_user, #error, #logger, #ok, #pastel, #print_title, #prompt, #run_command

Constructor Details

This class inherits a constructor from RedmineInstaller::Configuration::Base

Instance Method Details

#delivery_methodObject



132
133
134
# File 'lib/redmine-installer/configuration.rb', line 132

def delivery_method
  :sendmail
end

#delivery_settingsObject



136
137
138
139
140
141
# File 'lib/redmine-installer/configuration.rb', line 136

def delivery_settings
  {
    'location' => @location,
    'arguments' => @arguments
  }
end

#get_parametersObject



127
128
129
130
# File 'lib/redmine-installer/configuration.rb', line 127

def get_parameters
  @location = prompt.ask('Location:', default: '/usr/sbin/sendmail', required: true)
  @arguments = prompt.ask('Arguments:', default: '-i -t')
end

#to_sObject



143
144
145
# File 'lib/redmine-installer/configuration.rb', line 143

def to_s
  "<SendMail #{@location} #{@arguments}>"
end