Sha256: 02755f741cae71e242559bb23ef662efee738778a642355c07970ee37636931d

Contents?: true

Size: 515 Bytes

Versions: 109

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

require 'active_support/core_ext/object'

module Avm
  module Launcher
    module Git
      class Base < ::Avm::Launcher::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
end

Version data entries

109 entries across 109 versions & 2 rubygems

Version Path
avm-tools-0.104.0 lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.103.1 lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.103.0 lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.102.2 lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.102.1 lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.102.0 lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.101.0 lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.100.0 lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.99.1 lib/avm/launcher/git/base/dirty_files.rb