Sha256: 58cc6424f1f0e4cff7aae77f5d207386dd2d9278978689ed04148e08f1028384

Contents?: true

Size: 1.66 KB

Versions: 8

Compression:

Stored size: 1.66 KB

Contents

module Runbook::Generators
  # Remember to require this class in a runbook config file such as your
  # Runbookfile so it can be used from the command line. Note that you cannot
  # require this generator from a config file specified on the command line.
  class <%= name.classify %> < Thor::Group
    include ::Runbook::Generators::Base

    source_root File.dirname(__FILE__)

    # Uncomment this method to customize the generator's usage
    # description in runbook's help description.
    #
    # def self.usage
    #   args = arguments.map(&:banner).join(" ")
    #   args += " " unless args.empty?
    #   "<%= name.underscore %> #{args}[options]"
    # end

    # Uncomment this method to customize the generator's
    # description in runbook's help message.
    #
    # def self.description
    #   "Generate a <%= name %>"
    # end

    # Uncomment this method to customize the generator's
    # long description in runbook's help message.
    #
    # def self.long_description
    #   <<-LONG_DESC
    #   Here you can fully describe the options of your generator.
    #   LONG_DESC
    # end

    # Argument example
    # argument :name, desc: "The name of your <%= name.underscore %>, e.x. deploy_nginx"

    # Option example
    # class_option :include-readme, default: true, type: :boolean

    # Example of a generator step
    # See: https://github.com/erikhuda/thor/wiki/Generators
    # for further documentation on using thor generators.
    #
    # def create_<%= name.underscore %>
    #   target = File.join(
    #     parent_options[:root],
    #     "#{name.underscore}.rb",
    #   )
    #   template('templates/<%= name.underscore %>.tt', target)
    # end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
careacademy-runbook-1.2.0 lib/runbook/generators/generator/templates/generator.tt
runbook-1.1.0 lib/runbook/generators/generator/templates/generator.tt
runbook-1.0.0 lib/runbook/generators/generator/templates/generator.tt
runbook-0.16.1 lib/runbook/generators/generator/templates/generator.tt
runbook-0.16.0 lib/runbook/generators/generator/templates/generator.tt
runbook-0.15.0 lib/runbook/generators/generator/templates/generator.tt
runbook-0.14.0 lib/runbook/generators/generator/templates/generator.tt
runbook-0.13.0 lib/runbook/generators/generator/templates/generator.tt