Module: Stationed::Generators::Plugins::Stationed

Included in:
AppGenerator
Defined in:
lib/stationed/generators/plugins/stationed.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



7
8
9
10
11
12
# File 'lib/stationed/generators/plugins/stationed.rb', line 7

def self.prepended(base)
  base.class_option :stationed,
    type: :boolean,
    default: true,
    desc: 'Include stationed itself as an engine'
end

Instance Method Details

#finish_templateObject



14
15
16
17
18
# File 'lib/stationed/generators/plugins/stationed.rb', line 14

def finish_template
  return super unless options[:stationed]
  gem 'stationed', ::Stationed::VERSION
  super
end