Sha256: 4bd6d514b084d38cd300a8c359900d2a7500ef687ee0063b659b9e9b0529be17
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
# frozen_string_literal: true module Rubysmith module Builders # Builds project skeleton console for object inspection and exploration. class Console def self.call(configuration, builder: Builder) = new(configuration, builder: builder).call def initialize configuration, builder: Builder @configuration = configuration @builder = builder end def call return unless configuration.build_console builder.call(configuration.with(template_path: "%project_name%/bin/console.erb")) .render .permit 0o755 end private attr_reader :configuration, :builder end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysmith-0.11.0 | lib/rubysmith/builders/console.rb |
rubysmith-0.10.0 | lib/rubysmith/builders/console.rb |