Class: Hanamismith::Builders::Guard

Inherits:
Rubysmith::Builders::Guard
  • Object
show all
Defined in:
lib/hanamismith/builders/guard.rb

Overview

Builds project skeleton Guard support for a red, green, refactor loop.

Instance Method Summary collapse

Instance Method Details

#callObject



11
12
13
14
15
16
17
# File 'lib/hanamismith/builders/guard.rb', line 11

def call
  return configuration unless configuration.build_guard

  super
  builder.call(configuration.merge(template_path: "%project_name%/Guardfile.erb")).render
  configuration
end