Class: Runbook::Generators::Statement
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Runbook::Generators::Statement
show all
- Includes:
- Base
- Defined in:
- lib/runbook/generators/statement/statement.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Base
included, set_base_options
Class Method Details
.description ⇒ Object
7
8
9
|
# File 'lib/runbook/generators/statement/statement.rb', line 7
def self.description
"Generate a statement named NAME (e.x. ruby_command) that can be used in your runbooks"
end
|
Instance Method Details
#create_statement ⇒ Object
13
14
15
16
|
# File 'lib/runbook/generators/statement/statement.rb', line 13
def create_statement
target = File.join(parent_options[:root], "#{name.underscore}.rb")
template('templates/statement.tt', target)
end
|