Class: Hanamismith::Builders::Node

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

Overview

Builds project skeleton for Node.

Instance Method Summary collapse

Constructor Details

#initialize(executor: Open3) ⇒ Node

Returns a new instance of Node.



16
17
18
19
# File 'lib/hanamismith/builders/node.rb', line 16

def initialize(executor: Open3, **)
  @executor = executor
  super(**)
end

Instance Method Details

#callObject



21
22
23
24
25
# File 'lib/hanamismith/builders/node.rb', line 21

def call
  build_version
  builder.call(settings.with(template_path: "%project_name%/package.json.erb")).render
  true
end