Sha256: 7104eb02ede1bf8dcbf7708cd9b3e3d71257267b57fa78daa190926fb8b0e870

Contents?: true

Size: 697 Bytes

Versions: 28

Compression:

Stored size: 697 Bytes

Contents

require 'rails/generators/base'

module Capistrano
  module Sidekiq
    module Monit
      module Generators
        class TemplateGenerator < Rails::Generators::Base

          namespace "capistrano:sidekiq:monit:template"
          desc "Create local monitrc.erb, and erb files for monitored processes for customization"
          source_root File.expand_path('../templates', __FILE__)
          argument :templates_path, type: :string,
            default: "config/deploy/templates",
            banner: "path to templates"

          def copy_template
            copy_file "sidekiq_monit.conf.erb", "#{templates_path}/sidekiq_monit.erb"
          end

        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
capistrano-sidekiq-3.0.0 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-3.0.0.alpha.2 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-2.3.1 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-3.0.0.alpha.1 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-2.3.0 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-2.2.0 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-2.1.0 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-2.0.0 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-2.0.0.beta5 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-2.0.0.beta4 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-2.0.0.beta3 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-2.0.0.beta2 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-2.0.0.beta1 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-1.0.3 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-1.0.2 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-1.0.1 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-1.0.0 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-0.20.0 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-0.10.0 lib/generators/capistrano/sidekiq/monit/template_generator.rb
capistrano-sidekiq-0.5.4 lib/generators/capistrano/sidekiq/monit/template_generator.rb