-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KBP-127 #time 90m - Code was improved
- Loading branch information
hamdibayhan
committed
Oct 25, 2017
1 parent
6ae4d7b
commit f0ba41a
Showing
8 changed files
with
52 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
module Cybele | ||
module Helpers | ||
module RecipientInterceptor | ||
def configure_recipient_interceptor | ||
|
||
# Add recipient_interceptor staging settings to staging environment file | ||
configure_environment 'staging', template_content('recipient_interceptor_staging.rb') | ||
|
||
# Add recipient_interceptor staging settings to staging environment file | ||
append_file 'config/settings.yml', template_content('recipient_interceptor_settings.yml.erb') | ||
|
||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
module Cybele | ||
module Helpers | ||
module SimpleForm | ||
def configure_simple_form | ||
|
||
# Run the simple_form generator | ||
bundle_command 'exec rails generate simple_form:install --bootstrap -force' | ||
|
||
# Remove simple_form english file | ||
remove_file 'config/locales/simple_form.en.yml', force: true | ||
|
||
# Remove simple_form turkish file | ||
copy_file 'config/locales/simple_form.tr.yml', 'config/locales/simple_form.tr.yml' | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
email: | ||
sandbox: sandbox@#{app_name}.com | ||
noreply: no-reply@#{app_name}.com | ||
admin: admin@#{app_name}.com |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1 @@ | ||
email: | ||
sandbox: sandbox@#{app_name}.com | ||
noreply: no-reply@#{app_name}.com | ||
admin: admin@#{app_name}.com | ||
|
||
root_path: <%= ENV['ROOT_PATH'] %> | ||
|
||
smtp: | ||
address: <%= ENV['SMTP_ADDRESS'] %> | ||
port: 587 | ||
enable_starttls_auto: true | ||
user_name: <%= ENV['SMTP_USER_NAME'] %> | ||
password: <%= ENV['SMTP_PASSWORD'] %> | ||
authentication: 'plain' |