Sha256: 7d31c7849f6349ab04792c4b1a7cc0649a55c6fde19f9f51c5ad8bedfa6f1fc2

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

require 'thor/group'

module Engineyard::Recipes
  module Generators
    class RecipeGenerator < Thor::Group
      include Thor::Actions
      
      argument :recipe_name

      def self.source_root
        File.join(File.dirname(__FILE__), "recipe_generator", "templates")
      end
      
      def install_cookbooks
        directory "cookbooks"
      end
      
      private
      def say(msg, color = nil)
        color ? shell.say(msg, color) : shell.say(msg)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
engineyard-recipes-0.0.2 lib/engineyard-recipes/generators/recipe_generator.rb