Sha256: 0a9c82413f390548e711363754a28ab737b7d806a0769ecaa00ee6473249abdc

Contents?: true

Size: 389 Bytes

Versions: 8

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Rake gem."

        on "--[no-]rake"

        default { Container[:settings].build_rake }

        def call(boolean) = settings.build_rake = 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/rake.rb
rubysmith-7.8.0 lib/rubysmith/cli/actions/rake.rb
rubysmith-7.7.0 lib/rubysmith/cli/actions/rake.rb
rubysmith-7.6.0 lib/rubysmith/cli/actions/rake.rb
rubysmith-7.5.0 lib/rubysmith/cli/actions/rake.rb
rubysmith-7.4.0 lib/rubysmith/cli/actions/rake.rb
rubysmith-7.3.0 lib/rubysmith/cli/actions/rake.rb
rubysmith-7.2.0 lib/rubysmith/cli/actions/rake.rb