Sha256: e53b93af592036374a6291f68220d42ec19566ecdf508dbb5356fc4a5a08ba54

Contents?: true

Size: 611 Bytes

Versions: 2

Compression:

Stored size: 611 Bytes

Contents

module <%= config[:gem_class] %>
  class InstallGenerator < Rails::Generators::Base
    desc "Installs additional <%= config[:gem_class] %> resources."

    # Override the default source path by pulling from a shared templates directory for all generators.
    def self.source_root
      @source_root ||= File.join(File.dirname(__FILE__), "..", "templates")
    end

    # Let others know about you.
    def self.banner
      "rails generate <%= config[:gem_name] %>:install"
    end

    # TODO - Explain yourself.
    def copy_files
      # TODO - Add your fancy/schmancy install code here.
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gemsmith-0.3.0 lib/gemsmith/templates/lib/generators/gem/install/install_generator.rb.tmp
gemsmith-0.2.0 lib/gemsmith/templates/lib/generators/gem/install/install_generator.rb.tmp