Sha256: 3baf2ecc20c7abdc162219a1cb7ff0b36939a7ff2f252a6802a4b29eed7e8327

Contents?: true

Size: 549 Bytes

Versions: 6

Compression:

Stored size: 549 Bytes

Contents

module Stationed
  module Generators
    module Plugins
      module Foreman
        def self.prepended(base)
          base.class_option :foreman,
            type: :boolean,
            default: true,
            desc: 'Configure Foreman with a Procfile and .env file'
        end

        def finish_template
          return super unless options[:foreman]
          gem 'foreman'
          gem 'dotenv-rails'
          copy_file 'Procfile', 'Procfile'
          template 'env.erb', '.env'
          super
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stationed-0.6.0 lib/stationed/generators/plugins/foreman.rb
stationed-0.5.0 lib/stationed/generators/plugins/foreman.rb
stationed-0.4.0 lib/stationed/generators/plugins/foreman.rb
stationed-0.3.0 lib/stationed/generators/plugins/foreman.rb
stationed-0.2.0 lib/stationed/generators/plugins/foreman.rb
stationed-0.1.0 lib/stationed/generators/plugins/foreman.rb