Sha256: 7291bf3893f041496ce84b9c0440bfb828c5231398e0311673ae69d8e5487327

Contents?: true

Size: 412 Bytes

Versions: 2

Compression:

Stored size: 412 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 templates."

        on "--[no-]git_hub"

        default { Container[:settings].build_git_hub }

        def call(value = nil) = settings.build_git_hub = 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/git_hub.rb
rubysmith-7.0.0 lib/rubysmith/cli/actions/git_hub.rb