Sha256: f9cf4279e188e088d9b01e56de7dd39364a8af6479a3e5216ae42b8c2598d2a7

Contents?: true

Size: 425 Bytes

Versions: 2

Compression:

Stored size: 425 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 settings."

        on "--[no-]circle_ci"

        default { Container[:settings].build_circle_ci }

        def call(value = nil) = settings.build_circle_ci = value
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-7.1.0 lib/rubysmith/cli/actions/circle_ci.rb
rubysmith-7.0.0 lib/rubysmith/cli/actions/circle_ci.rb