Sha256: eb337d8a2d488f50e1dc4e1ffaf581b85b03963e0b6c1c3ee506e3d179d8c1f2
Contents?: true
Size: 799 Bytes
Versions: 2
Compression:
Stored size: 799 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Hanamismith module Builders # Builds project skeleton setup script. class Setup < Rubysmith::Builders::Setup using Refinements::Struct def call return false unless settings.build_setup super append true end private def append builder.call(settings.merge(template_path: "%project_name%/bin/setup.erb")) .insert_after(%(Runner.call "bundle install"\n), <<~CONTENT.gsub(/^(?=\w)/, " ")) puts "Installing packages..." Runner.call "npm install" puts "Configurating databases..." Runner.call "bin/hanami db prepare" CONTENT end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hanamismith-0.49.0 | lib/hanamismith/builders/setup.rb |
hanamismith-0.48.0 | lib/hanamismith/builders/setup.rb |