Sha256: 418a19f56a193ab9db4ab58c6fd159f3f5155f8479b65bdbd7bd7e87c68b610c

Contents?: true

Size: 432 Bytes

Versions: 7

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add GitHub code review and issue templates."

        on "--[no-]git_hub"

        default { Container[:settings].build_git_hub }

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