Sha256: 9a1846c3d0eca5b96d6ff5b07c8ddf8cee116c4a166aa024134fdddcccbda5fd
Contents?: true
Size: 564 Bytes
Versions: 12
Compression:
Stored size: 564 Bytes
Contents
# frozen_string_literal: true module Rubysmith module Builders # Builds project skeleton setup script. class Setup def self.call realm, builder: Builder new(realm, builder: builder).call end def initialize realm, builder: Builder @realm = realm @builder = builder end def call return unless realm.build_setup builder.call(realm.with(template_path: "%project_name%/bin/setup.erb")).render.permit 0o755 end private attr_reader :realm, :builder end end end
Version data entries
12 entries across 12 versions & 1 rubygems