Sha256: 3d28d910cc1b54aa5ecc8143263d9eab37de124a1e34278d74c7008d653b2d7d

Contents?: true

Size: 469 Bytes

Versions: 55

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

require 'active_support/core_ext/object'

module EacLauncher
  module Git
    class Base < ::EacLauncher::Paths::Real
      module DirtyFiles
        delegate :dirty?, to: :eac_git

        def dirty_files
          eac_git.dirty_files.map do |df|
            ::OpenStruct.new(
              df.to_h.merge(path: df.path.to_path, absolute_path: df.absolute_path.to_path)
            )
          end
        end
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
avm-tools-0.99.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.98.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.97.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.96.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.95.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.94.3 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.94.2 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.94.1 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.94.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.93.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.92.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.91.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.90.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.89.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.88.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.87.1 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.87.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.86.0 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.85.1 lib/eac_launcher/git/base/dirty_files.rb
avm-tools-0.85.0 lib/eac_launcher/git/base/dirty_files.rb