Skip to content

Commit

Permalink
Merge pull request puppetlabs-toy-chest#17 from zsprackett/master
Browse files Browse the repository at this point in the history
Add gitignore to default puppet module
  • Loading branch information
Jeff McCune committed Dec 29, 2011
2 parents 9e35752 + 3cafbc5 commit c53ccec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/puppet/module/tool/applications/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def read
def target
target = @generator.destination + @source.relative_path_from(@generator.skeleton.path)
components = target.to_s.split(File::SEPARATOR).map do |part|
if part[0] == '_'
part[0] = '.'
end
part == 'NAME' ? @generator.metadata.name : part
end
Pathname.new(components.join(File::SEPARATOR))
Expand Down
15 changes: 15 additions & 0 deletions templates/generator/_gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## MAC OS
.DS_Store

## TEXTMATE
*.tmproj
tmtags

## EMACS
*~
\#*
.\#*

## VIM
*.swp
tags

0 comments on commit c53ccec

Please sign in to comment.