Sha256: f9b5a76d425572e744e1ac37614a9bc0def90efae5dd8308ba304a0066ad4248

Contents?: true

Size: 477 Bytes

Versions: 7

Compression:

Stored size: 477 Bytes

Contents

module EacLauncher
  module Git
    class Base < ::EacLauncher::Path
      module Subrepo
        def subrepo_status(subrepo_path)
          s = execute!('subrepo', 'status', subrepo_path.gsub(%r{\A/}, ''))
          r = {}.with_indifferent_access
          s.each_line do |l|
            m = /\A([^\:]+)\:(.*)\z/.match(l.strip)
            next unless m && m[2].present?
            r[m[1].strip] = m[2].strip
          end
          r
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eac_launcher-0.1.6 lib/eac_launcher/git/base/subrepo.rb
eac_launcher-0.1.5 lib/eac_launcher/git/base/subrepo.rb
eac_launcher-0.1.3 lib/eac_launcher/git/base/subrepo.rb
eac_launcher-0.1.4 lib/eac_launcher/git/base/subrepo.rb
eac_launcher-0.1.2 lib/eac_launcher/git/base/subrepo.rb
eac_launcher-0.1.1 lib/eac_launcher/git/base/subrepo.rb
eac_launcher-0.1.0 lib/eac_launcher/git/base/subrepo.rb