lib/stationed/generators/plugins/foreman.rb in stationed-0.0.1 vs lib/stationed/generators/plugins/foreman.rb in stationed-0.1.0
- old
+ new
@@ -1,11 +1,19 @@
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 'yard', require: false, group: :doc
+ gem 'dotenv-rails'
copy_file 'Procfile', 'Procfile'
template 'env.erb', '.env'
super
end
end