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