Module: HotCell::Install
- Defined in:
- lib/hot_cell/install.rb
Overview
Writes the hotcell/ directory into an application: a complete Dockerfile to customize, the cell's Gemfile, and an operations/ directory the cell loads at boot. Everything installs inline rather than deriving from a published base image, so the whole cell is the application's to read and change.
A file that already exists is left exactly as it is, so running this again after customizing is safe.
Constant Summary collapse
- TEMPLATES =
File.("install", __dir__)
Class Method Summary collapse
Class Method Details
.call(root, out: $stdout) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/hot_cell/install.rb', line 18 def call(root, out: $stdout) templates.each do |template| relative = template.delete_prefix("#{TEMPLATES}/").delete_suffix(".tt") install template, File.join(root, "hotcell", relative), "hotcell/#{relative}", out end end |