Sha256: bdc9e296d7ebaa37d742b260618302f8ed5259b50099fbc08468df249e790edd

Contents?: true

Size: 391 Bytes

Versions: 18

Compression:

Stored size: 391 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Git repository."

        on "--[no-]git"

        default { Container[:configuration].build_git }

        def call(value = nil) = input.build_git = value
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rubysmith-6.10.0 lib/rubysmith/cli/actions/git.rb
rubysmith-6.9.0 lib/rubysmith/cli/actions/git.rb
rubysmith-6.6.0 lib/rubysmith/cli/actions/git.rb
rubysmith-6.5.0 lib/rubysmith/cli/actions/git.rb
rubysmith-6.4.0 lib/rubysmith/cli/actions/git.rb
rubysmith-6.3.0 lib/rubysmith/cli/actions/git.rb
rubysmith-6.2.1 lib/rubysmith/cli/actions/git.rb
rubysmith-6.2.0 lib/rubysmith/cli/actions/git.rb
rubysmith-6.1.0 lib/rubysmith/cli/actions/git.rb
rubysmith-6.0.0 lib/rubysmith/cli/actions/git.rb
rubysmith-5.9.0 lib/rubysmith/cli/actions/git.rb
rubysmith-5.8.1 lib/rubysmith/cli/actions/git.rb
rubysmith-5.8.0 lib/rubysmith/cli/actions/git.rb
rubysmith-5.7.0 lib/rubysmith/cli/actions/git.rb
rubysmith-5.6.0 lib/rubysmith/cli/actions/git.rb
rubysmith-5.5.0 lib/rubysmith/cli/actions/git.rb
rubysmith-5.4.0 lib/rubysmith/cli/actions/git.rb
rubysmith-5.3.0 lib/rubysmith/cli/actions/git.rb