Class: Gemsmith::Builders::Console

Inherits:
Rubysmith::Builders::Console
  • Object
show all
Defined in:
lib/gemsmith/builders/console.rb

Overview

Builds project skeleton console for object inspection and exploration.

Instance Method Summary collapse

Instance Method Details

#callObject



11
12
13
14
15
16
17
18
19
# File 'lib/gemsmith/builders/console.rb', line 11

def call
  return false unless settings.build_console

  super
  builder.call(settings.merge(template_path: "%project_name%/bin/console.erb"))
         .replace(/require Bundler.root.+/, %(require "#{settings.project_path}"))

  true
end