Sha256: 0bfcac06ba9c0c9a42a885b037cc669803571f09c6496a56cf5a01f434ebb86b

Contents?: true

Size: 532 Bytes

Versions: 4

Compression:

Stored size: 532 Bytes

Contents

module GitBundle
  module Commands
    class Generic
      include GitBundle::Console

      def initialize(repositories, args)
        @repositories = repositories
        @args = args
      end

      def invoke
        errors = []
        @repositories.each do |repo|
          puts_repo_heading(repo)
          puts repo.execute_git(@args.join(' '))
          errors << repo.name unless $?.exitstatus == 0
        end

        puts_error "Command failed in #{errors.join(', ')}." unless errors.empty?
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
git-bundle-1.0.5 lib/git_bundle/commands/generic.rb
git-bundle-1.0.4 lib/git_bundle/commands/generic.rb
git-bundle-1.0.3 lib/git_bundle/commands/generic.rb
git-bundle-1.0.2 lib/git_bundle/commands/generic.rb