Sha256: ee2109256bf28b2a00ee15844d19fe3e303bf5b90a2b2329dde3b0769e4e83cd

Contents?: true

Size: 739 Bytes

Versions: 55

Compression:

Stored size: 739 Bytes

Contents

module Redcar
  module Scm
    class ScmCommitsMirror
      class CommitsNode
        include Redcar::Tree::Mirror::NodeMirror
        
        attr_reader :repo, :branch
        
        def initialize(repo, branch=nil, text=nil)
          @repo = repo
          @branch = branch
          @text = text || branch || @repo.translations[:unpushed_commits]
        end
        
        def text
          @text
        end
        
        def icon
          :"folder--arrow"
        end
        
        def leaf?
          false
        end
        
        def children
          if branch
            @repo.unpushed_commits(branch)
          else
            @repo.unpushed_commits
          end
        end
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 2 rubygems

Version Path
redcar-0.13 plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.13.5dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.13.4dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.13.3dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.13.2dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.13.1dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-0.12.1 plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.13.0dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-0.12 plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.12.27dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.12.26dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.12.25dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.12.24dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.12.23dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.12.22dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.12.21dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.12.20dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.12.19dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.12.18dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb
redcar-dev-0.12.17dev plugins/scm/lib/scm/scm_commits_mirror/commits_node.rb