Sha256: e2434abcd233b76e54a15f1e95491d9ee6a91e8398ab60d460d5e1cb72344569
Contents?: true
Size: 733 Bytes
Versions: 10
Compression:
Stored size: 733 Bytes
Contents
module Teleport class SidekiqGenerator < Rails::Generators::Base def add_gems gem 'sidekiq' gem 'sidetiq' Bundler.with_clean_env do run "bundle install" end copy_file 'sidekiq/_sidekiq_example_worker.rb', 'app/workers/_sidekiq_example_worker.rb' copy_file 'sidekiq/_sidetiq_example_worker.rb', 'app/workers/_sidetiq_example_worker.rb' prepend_to_file "app/config/routes.rb", %q{ require 'sidekiq/web' require 'sidetiq/web' } route %q{ authenticate :user, ->(u) { u.admin? } do mount Sidekiq::Web => '/sidekiq' end } end end end
Version data entries
10 entries across 10 versions & 1 rubygems