Class: Runbook::Generators::Runbook
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Runbook::Generators::Runbook
show all
- Includes:
- Base
- Defined in:
- lib/runbook/generators/runbook/runbook.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Base
included, set_base_options
Class Method Details
.description ⇒ Object
11
12
13
|
# File 'lib/runbook/generators/runbook/runbook.rb', line 11
def self.description
"Generate a runbook named NAME, e.x. deploy_nginx"
end
|
.usage ⇒ Object
7
8
9
|
# File 'lib/runbook/generators/runbook/runbook.rb', line 7
def self.usage
"runbook NAME [options]"
end
|
Instance Method Details
#create_runbook ⇒ Object
17
18
19
20
|
# File 'lib/runbook/generators/runbook/runbook.rb', line 17
def create_runbook
target = File.join(options[:root], "#{name.underscore}.rb")
template('templates/runbook.tt', target)
end
|