Class: Hanamismith::Builders::Git::Ignore
- Inherits:
-
Rubysmith::Builders::Git::Ignore
- Object
- Rubysmith::Builders::Git::Ignore
- Hanamismith::Builders::Git::Ignore
- Defined in:
- lib/hanamismith/builders/git/ignore.rb
Overview
Builds project skeleton Git ignore.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/hanamismith/builders/git/ignore.rb', line 12 def call return configuration unless configuration.build_git super builder.call(configuration.merge(template_path: "%project_name%/.gitignore.erb")) .insert_before("tmp\n", "node_modules\n") .insert_before("tmp\n", "public/assets\n") .insert_before("tmp\n", "public/assets.json\n") configuration end |