Skip to content

Commit

Permalink
Add generation hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Oct 7, 2008
1 parent 5a76b09 commit 4346909
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 66 deletions.
10 changes: 6 additions & 4 deletions lib/templater/cli/generator.rb
Expand Up @@ -73,6 +73,11 @@ def run(arguments)
puts "Generating with #{@generator_name} generator:"
end
step_through_templates

# Run hooks
@generator.after_run
@generator.after_generation unless @options[:delete]
@generator.after_deletion if @options[:delete]
end

def step_through_templates
Expand Down Expand Up @@ -165,9 +170,6 @@ def output_diff_line(diff)
say "#{diff.action} #{diff.element.chomp}"
end
end

end

end

end
end

0 comments on commit 4346909

Please sign in to comment.