Sha256: 251187d96d5fdd82fe2f83c886d22a2eccdd56c00cf8ed16a2b7a0329c122215
Contents?: true
Size: 508 Bytes
Versions: 8
Compression:
Stored size: 508 Bytes
Contents
module Runbook::Generators class Statement < Thor::Group include ::Runbook::Generators::Base source_root File.dirname(__FILE__) def self.description "Generate a statement named NAME (e.x. ruby_command) that can be used in your runbooks" end argument :name, desc: "The name of your statement, e.x. ruby_command" def create_statement target = File.join(parent_options[:root], "#{name.underscore}.rb") template('templates/statement.tt', target) end end end
Version data entries
8 entries across 8 versions & 2 rubygems