Class: Hanamismith::Builders::Node
- Inherits:
-
Rubysmith::Builders::Abstract
- Object
- Rubysmith::Builders::Abstract
- Hanamismith::Builders::Node
- Defined in:
- lib/hanamismith/builders/node.rb
Overview
Builds project skeleton for Node.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(executor: Open3) ⇒ Node
constructor
A new instance of Node.
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
#call ⇒ Object
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 |