Skip to content

Commit

Permalink
KBP-127 #time 5m - Files were moved to self main folders
Browse files Browse the repository at this point in the history
  • Loading branch information
hamdibayhan committed Oct 25, 2017
1 parent 6e386e5 commit 8f67ade
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/cybele/app_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def add_gems

def add_simple_form_gem
# Add simple_form gems
append_file('Gemfile', template_content('simple_form_Gemfile.erb'))
append_file('Gemfile', template_content('simple_form/simple_form_Gemfile.erb'))
end

def add_editor_config
Expand Down
4 changes: 2 additions & 2 deletions lib/cybele/helpers/recipient_interceptor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ module RecipientInterceptor
def configure_recipient_interceptor

# Add recipient_interceptor staging settings to staging environment file
configure_environment 'staging', template_content('recipient_interceptor_staging.rb')
configure_environment 'staging', template_content('recipient_interceptor/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')
append_file 'config/settings.yml', template_content('recipient_interceptor/recipient_interceptor_settings.yml.erb')

end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/cybele/helpers/responders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Helpers
module Responders
def configure_responders
# Add gems
append_file('Gemfile', template_content('responders_Gemfile.erb'))
append_file('Gemfile', template_content('responders/responders_Gemfile.erb'))
run_bundle

# Add initializers
Expand Down
14 changes: 7 additions & 7 deletions lib/cybele/helpers/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,37 @@ module Helpers
module Sidekiq
def configure_sidekiq
# Add gems
append_file('Gemfile', template_content('sidekiq_Gemfile.erb'))
append_file('Gemfile', template_content('sidekiq/sidekiq_Gemfile.erb'))

create_sidekiq_files

# Add sidekiq routes to routes
prepend_file 'config/routes.rb',
template_content('sidekiq_routes_require.erb')
template_content('sidekiq/sidekiq_routes_require.erb')
inject_into_file 'config/routes.rb',
template_content('sidekiq_routes_mount.erb'),
template_content('sidekiq/sidekiq_routes_mount.erb'),
after: 'Rails.application.routes.draw do'
end

private

def create_sidekiq_files
# Initialize files
template 'sidekiq.rb.erb',
template 'sidekiq/sidekiq.rb.erb',
'config/initializers/sidekiq.rb',
force: true
# Add tasks
template 'sidekiq.rake.erb',
template 'sidekiq/sidekiq.rake.erb',
'lib/tasks/sidekiq.rake',
force: true

# Add sidekiq.yml
template 'sidekiq.yml.erb',
template 'sidekiq/sidekiq.yml.erb',
'config/sidekiq.yml',
force: true

# Add sidekiq_schedule.yml
template 'sidekiq_schedule.yml.erb',
template 'sidekiq/sidekiq_schedule.yml.erb',
'config/sidekiq_schedule.yml',
force: true
end
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8f67ade

Please sign in to comment.