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
# 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\n")

  configuration
end