Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom generator init template not working anymore with wagon 3.0.5 #397

Open
numito opened this issue Apr 13, 2021 · 0 comments
Open

Custom generator init template not working anymore with wagon 3.0.5 #397

numito opened this issue Apr 13, 2021 · 0 comments

Comments

@numito
Copy link

numito commented Apr 13, 2021

Custom generators template used to work well. But since version 3, the template gets registered but when you try to init a new project you always get the files from the blank template.

The generator gets correctly listed when using

wagon list_templates --lib=/tmp/init-scripts/skeleton/df_blank.rb

This is the generator definition.

module Locomotive
  module Wagon
    module Generators
      module Site

        class DfBlank < Base

          def self.source_root
            File.join(File.dirname(__FILE__), 'df_blank')
          end

          def bundle_install
            super
          end

        end

        Locomotive::Wagon::Generators::Site.register(:df_blank, DfBlank, %{
          D-facto blank site with the minimal HAML files.
        })
      end
    end
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant