-
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.
Merged in feature/integrate_recipient_interceptor_gem (pull request #5)
KBP-125 KBP-126 KBP-128 KBP-127 KBP-136Feature/integrate recipient interceptor gem Approved-by: İsmail Akbudak <[email protected]> Approved-by: Fatih Avsan <[email protected]>
- Loading branch information
Showing
27 changed files
with
296 additions
and
17 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
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,16 @@ | ||
# 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/recipient_interceptor_staging.rb.erb') | ||
# Add recipient_interceptor staging settings to staging environment file | ||
append_file 'config/settings.yml', | ||
template_content('recipient_interceptor/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
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,21 @@ | ||
# 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 | ||
|
||
def add_simple_form_gem | ||
# Add simple_form gem | ||
append_file('Gemfile', template_content('simple_form/simple_form_Gemfile.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,15 @@ | ||
# frozen_string_literal: true | ||
|
||
module Cybele | ||
module Helpers | ||
module Staging | ||
def setup_staging_environment | ||
run 'cp config/environments/production.rb config/environments/staging.rb' | ||
end | ||
|
||
def add_staging_secret_key_to_secrets_yml | ||
append_file 'config/secrets.yml', template_content('secrets.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
Oops, something went wrong.