Sha256: 91b1cd03a881dc8ffa846eef912b0285903c0227c2d865800a1887af053a0c10

Contents?: true

Size: 366 Bytes

Versions: 23

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true

module Avm
  module Git
    module Issue
      class Complete
        module WorkingTree
          def clean_workspace_result
            ::Avm::Result.success_or_error(clean_workspace?, 'yes', 'no')
          end

          def clean_workspace?
            @git.dirty_files.none?
          end
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
avm-tools-0.113.5 sub/avm-git/lib/avm/git/issue/complete/working_tree.rb
avm-tools-0.113.4 sub/avm-git/lib/avm/git/issue/complete/working_tree.rb
avm-tools-0.113.3 sub/avm-git/lib/avm/git/issue/complete/working_tree.rb
avm-tools-0.113.2 sub/avm-git/lib/avm/git/issue/complete/working_tree.rb
avm-git-0.3.0 lib/avm/git/issue/complete/working_tree.rb
avm-git-0.2.0 lib/avm/git/issue/complete/working_tree.rb
avm-tools-0.110.0 vendor/avm-git/lib/avm/git/issue/complete/working_tree.rb
avm-tools-0.109.1 vendor/avm-git/lib/avm/git/issue/complete/working_tree.rb
avm-git-0.1.0 lib/avm/git/issue/complete/working_tree.rb
avm-tools-0.109.0 vendor/avm-git/lib/avm/git/issue/complete/working_tree.rb
avm-0.5.0 lib/avm/git/issue/complete/working_tree.rb
avm-tools-0.108.0 vendor/avm/lib/avm/git/issue/complete/working_tree.rb
avm-0.4.0 lib/avm/git/issue/complete/working_tree.rb
avm-tools-0.107.0 vendor/avm/lib/avm/git/issue/complete/working_tree.rb
avm-tools-0.106.0 vendor/avm/lib/avm/git/issue/complete/working_tree.rb
avm-0.3.2 lib/avm/git/issue/complete/working_tree.rb
avm-0.3.1 lib/avm/git/issue/complete/working_tree.rb
avm-tools-0.105.0 vendor/avm/lib/avm/git/issue/complete/working_tree.rb
avm-0.3.0 lib/avm/git/issue/complete/working_tree.rb
avm-tools-0.104.0 vendor/avm/lib/avm/git/issue/complete/working_tree.rb