Sha256: 54013ac5a7cdf031561fe2ed7c23369e4f30cf55548c61c43ad1756524b99d9f

Contents?: true

Size: 464 Bytes

Versions: 4

Compression:

Stored size: 464 Bytes

Contents

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
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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