Class: RedmineInstaller::Configuration::SendMail
- Inherits:
-
Base
- Object
- Base
- RedmineInstaller::Configuration::SendMail
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
Instance Method Details
#delivery_method ⇒ Object
132
133
134
|
# File 'lib/redmine-installer/configuration.rb', line 132
def delivery_method
:sendmail
end
|
#delivery_settings ⇒ Object
136
137
138
139
140
141
|
# File 'lib/redmine-installer/configuration.rb', line 136
def delivery_settings
{
'location' => @location,
'arguments' => @arguments
}
end
|
#get_parameters ⇒ Object
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
|
143
144
145
|
# File 'lib/redmine-installer/configuration.rb', line 143
def to_s
"<SendMail #{@location} #{@arguments}>"
end
|