lib/stationed/generators/plugins/pry.rb in stationed-0.0.1 vs lib/stationed/generators/plugins/pry.rb in stationed-0.1.0
- old
+ new
@@ -1,9 +1,17 @@
module Stationed
module Generators
module Plugins
module Pry
+ def self.prepended(base)
+ base.class_option :pry,
+ type: :boolean,
+ default: true,
+ desc: 'Include Pry debugging gems'
+ end
+
def finish_template
+ return super unless options[:pry]
gem_group :development, :test do
gem 'pry-rails'
gem 'pry-byebug'
gem 'pry-stack_explorer'
gem 'better_errors'