class Runbook::Generators::DslExtension
Public Class Methods
description()
click to toggle source
# File lib/runbook/generators/dsl_extension/dsl_extension.rb, line 7 def self.description "Generate a dsl_extension for adding custom runbook DSL functionality" end
long_description()
click to toggle source
# File lib/runbook/generators/dsl_extension/dsl_extension.rb, line 11 def self.long_description <<-LONG_DESC This generator provides a template for extending Runbook's DSL. Using a DSL extension, you can add custom commands to a book, section, or step that can be used in your runbooks. LONG_DESC end
Public Instance Methods
create_dsl_extension()
click to toggle source
# File lib/runbook/generators/dsl_extension/dsl_extension.rb, line 21 def create_dsl_extension target = File.join( parent_options[:root], "#{name.underscore}.rb", ) template('templates/dsl_extension.tt', target) end