class Zucchini::Generator

Public Instance Methods

execute() click to toggle source
# File lib/zucchini/generator.rb, line 11
def execute
  if project?
    FileUtils.mkdir_p(path)
    FileUtils.cp_r("#{templates_path}/project/.", path)
  elsif feature? then FileUtils.cp_r("#{templates_path}/feature", path)
  end
end
templates_path() click to toggle source
# File lib/zucchini/generator.rb, line 7
def templates_path
  File.expand_path("#{File.dirname(__FILE__)}/../../templates")
end