Sha256: d4725f57d3dc4efcdd86b694673213a29c09af9f17bf6788b11c0f52b47b0173

Contents?: true

Size: 467 Bytes

Versions: 8

Compression:

Stored size: 467 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Guard gem."

        ancillary "DEPRECATED: Will be removed in next major version."

        on "--[no-]guard"

        default { Container[:settings].build_guard }

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