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.140.0 lib/avm/launcher/git/base/dirty_files.rb
eac_tools-0.36.0 sub/avm-tools/lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.139.0 lib/avm/launcher/git/base/dirty_files.rb
eac_tools-0.35.0 sub/avm-tools/lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.138.0 lib/avm/launcher/git/base/dirty_files.rb
eac_tools-0.34.0 sub/avm-tools/lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.137.0 lib/avm/launcher/git/base/dirty_files.rb
eac_tools-0.33.0 sub/avm-tools/lib/avm/launcher/git/base/dirty_files.rb
eac_tools-0.32.0 sub/avm-tools/lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.136.2 lib/avm/launcher/git/base/dirty_files.rb
eac_tools-0.31.1 sub/avm-tools/lib/avm/launcher/git/base/dirty_files.rb
eac_tools-0.31.0 sub/avm-tools/lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.136.1 lib/avm/launcher/git/base/dirty_files.rb
eac_tools-0.30.0 sub/avm-tools/lib/avm/launcher/git/base/dirty_files.rb
eac_tools-0.29.0 sub/avm-tools/lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.136.0 lib/avm/launcher/git/base/dirty_files.rb
eac_tools-0.28.0 sub/avm-tools/lib/avm/launcher/git/base/dirty_files.rb
eac_tools-0.27.2 sub/avm-tools/lib/avm/launcher/git/base/dirty_files.rb
eac_tools-0.27.1 sub/avm-tools/lib/avm/launcher/git/base/dirty_files.rb
avm-tools-0.135.0 lib/avm/launcher/git/base/dirty_files.rb