Sha256: f30779efc649265a352aec791fe7a26c3e50fd7248c1fd11718121075124c281

Contents?: true

Size: 413 Bytes

Versions: 7

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Rubysmith
  module CLI
    module Actions
      # Stores Bootsnap flag.
      class Bootsnap < Sod::Action
        include Import[:settings]

        description "Add Bootsnap gem."

        on "--[no-]bootsnap"

        default { Container[:settings].build_bootsnap }

        def call(boolean) = settings.build_bootsnap = boolean
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/cli/actions/bootsnap.rb
rubysmith-7.8.0 lib/rubysmith/cli/actions/bootsnap.rb
rubysmith-7.7.0 lib/rubysmith/cli/actions/bootsnap.rb
rubysmith-7.6.0 lib/rubysmith/cli/actions/bootsnap.rb
rubysmith-7.5.0 lib/rubysmith/cli/actions/bootsnap.rb
rubysmith-7.4.0 lib/rubysmith/cli/actions/bootsnap.rb
rubysmith-7.3.0 lib/rubysmith/cli/actions/bootsnap.rb