Class: LaunchBase::Plugins::Sidekiq

Inherits:
LaunchBase::Plugin show all
Defined in:
lib/launch_base/plugins/sidekiq.rb

Instance Method Summary collapse

Methods inherited from LaunchBase::Plugin

class_name, #class_name, command_line_flag, description, each_plugin, inherited, install, method_added, plugin_name, register, #run_install, to_snake_case, #touch

Instance Method Details

#installObject



6
7
8
9
10
11
12
# File 'lib/launch_base/plugins/sidekiq.rb', line 6

def install
  append_to_file 'Gemfile', "gem 'sidekiq', '~> 5.1'"
  touch 'Procfile'
  append_to_file 'Procfile', 'bundle exec sidekiq'
  empty_directory 'app/workers'
  run 'bundle install'
end