class Runbook::Generators::Runbook

Public Class Methods

description() click to toggle source
# File lib/runbook/generators/runbook/runbook.rb, line 11
def self.description
  "Generate a runbook named NAME, e.x. deploy_nginx"
end
usage() click to toggle source
# File lib/runbook/generators/runbook/runbook.rb, line 7
def self.usage
  "runbook NAME [options]"
end

Public Instance Methods

create_runbook() click to toggle source
# 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