lib/stationed/generators/plugins/stationed.rb in stationed-0.0.1 vs lib/stationed/generators/plugins/stationed.rb in stationed-0.1.0

- old
+ new

@@ -1,9 +1,17 @@ module Stationed module Generators module Plugins module Stationed + def self.prepended(base) + base.class_option :stationed, + type: :boolean, + default: true, + desc: 'Include stationed itself as an engine' + end + def finish_template + return super unless options[:stationed] gem 'stationed', path: '~/code/stationed' super end end end