Class: Hanamismith::Builders::Git::Ignore

Inherits:
Rubysmith::Builders::Git::Ignore
  • Object
show all
Defined in:
lib/hanamismith/builders/git/ignore.rb

Overview

Builds project skeleton Git ignore.

Instance Method Summary collapse

Instance Method Details

#callObject



12
13
14
15
16
17
18
19
20
21
22
23
24
# 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", <<~CONTENT
           node_modules
           public/assets
           public/assets.json
         CONTENT

  configuration
end