Sha256: 603561f515fae660ebda06b9876220892621833ccbb82a92c6ad98936cef1f40
Contents?: true
Size: 668 Bytes
Versions: 4
Compression:
Stored size: 668 Bytes
Contents
require 'thor/group' module Engineyard::Recipes module Generators class InitSmGenerator < BaseGenerator include Thor::Actions def self.source_root File.join(File.dirname(__FILE__), "init_sm_generator", "templates") end def install_cookbooks directory "cookbooks", cookbooks_destination end def auto_require_package file = cookbooks_dir("main/recipes/default.rb") require_recipe = "\nrequire_recipe '#{recipe_name}'\n" append_to_file file, require_recipe end private def recipe_name 'sm' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems