Sha256: 523a7f32644103e9976b46732a9aff39da0a768698cfece252f22f3ac685b68f

Contents?: true

Size: 398 Bytes

Versions: 8

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add setup script."

        on "--[no-]setup"

        default { Container[:settings].build_setup }

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

Version data entries

8 entries across 8 versions & 1 rubygems

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