Sha256: 02087f86ae87bb684aaf6ec18f932f563fd82622ef93683e953f10bd7dab1cb7

Contents?: true

Size: 482 Bytes

Versions: 10

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Rubysmith
  module Builders
    # Builds project skeleton console for object inspection and exploration.
    class Console < Abstract
      using Refinements::Struct

      def call
        return false unless settings.build_console

        builder.call(settings.merge(template_path: "%project_name%/bin/console.erb"))
               .render
               .permit 0o755

        true
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/builders/console.rb
rubysmith-7.8.0 lib/rubysmith/builders/console.rb
rubysmith-7.7.0 lib/rubysmith/builders/console.rb
rubysmith-7.6.0 lib/rubysmith/builders/console.rb
rubysmith-7.5.0 lib/rubysmith/builders/console.rb
rubysmith-7.4.0 lib/rubysmith/builders/console.rb
rubysmith-7.3.0 lib/rubysmith/builders/console.rb
rubysmith-7.2.0 lib/rubysmith/builders/console.rb
rubysmith-7.1.0 lib/rubysmith/builders/console.rb
rubysmith-7.0.0 lib/rubysmith/builders/console.rb