lib/bently/recipe/gitignore.rb in bently-0.0.0 vs lib/bently/recipe/gitignore.rb in bently-0.1.0
- old
+ new
@@ -1,18 +1,23 @@
module Bently
class Gitignore < Recipe
- GITIGNORE =
+ step :touch_gitignore
+
+ protected
+
+ def touch_gitignore
+ touch :file => '.gitignore', :with => gitignore
+ end
+
+ def gitignore
%{.DS_Store
.rvmrc
*.swap
*.swo
-*.swp
-}
-
- def bake
- create_file ".gitignore", GITIGNORE
- super
+*.swp}
end
+
end
+
end