Sha256: 508bd523e362616699d14ade0009e72a70f0ec9d795893cf16645583c2e8bd62

Contents?: true

Size: 422 Bytes

Versions: 7

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Circle CI support."

        on "--[no-]circle_ci"

        default { Container[:settings].build_circle_ci }

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