Class: P4::DepotFile
- Inherits:
-
Object
- Object
- P4::DepotFile
- Defined in:
- lib/P4.rb
Overview
***************************************************************************** P4::DepotFile class. Each DepotFile entry contains details about one depot file. *****************************************************************************
Instance Attribute Summary collapse
-
#depot_file ⇒ Object
readonly
Returns the value of attribute depot_file.
-
#head_action ⇒ Object
Returns the value of attribute head_action.
-
#head_change ⇒ Object
Returns the value of attribute head_change.
-
#head_rev ⇒ Object
Returns the value of attribute head_rev.
-
#head_time ⇒ Object
Returns the value of attribute head_time.
-
#head_type ⇒ Object
Returns the value of attribute head_type.
-
#revisions ⇒ Object
readonly
Returns the value of attribute revisions.
Instance Method Summary collapse
- #each_revision ⇒ Object
-
#initialize(name) ⇒ DepotFile
constructor
A new instance of DepotFile.
- #new_revision ⇒ Object
Constructor Details
#initialize(name) ⇒ DepotFile
Returns a new instance of DepotFile.
633 634 635 636 637 |
# File 'lib/P4.rb', line 633 def initialize( name ) @depot_file = name @revisions = Array.new @headAction = @head_type = @head_time = @head_rev = @head_change = nil end |
Instance Attribute Details
#depot_file ⇒ Object (readonly)
Returns the value of attribute depot_file.
639 640 641 |
# File 'lib/P4.rb', line 639 def depot_file @depot_file end |
#head_action ⇒ Object
Returns the value of attribute head_action.
640 641 642 |
# File 'lib/P4.rb', line 640 def head_action @head_action end |
#head_change ⇒ Object
Returns the value of attribute head_change.
640 641 642 |
# File 'lib/P4.rb', line 640 def head_change @head_change end |
#head_rev ⇒ Object
Returns the value of attribute head_rev.
640 641 642 |
# File 'lib/P4.rb', line 640 def head_rev @head_rev end |
#head_time ⇒ Object
Returns the value of attribute head_time.
640 641 642 |
# File 'lib/P4.rb', line 640 def head_time @head_time end |
#head_type ⇒ Object
Returns the value of attribute head_type.
640 641 642 |
# File 'lib/P4.rb', line 640 def head_type @head_type end |
#revisions ⇒ Object (readonly)
Returns the value of attribute revisions.
639 640 641 |
# File 'lib/P4.rb', line 639 def revisions @revisions end |
Instance Method Details
#each_revision ⇒ Object
648 649 650 |
# File 'lib/P4.rb', line 648 def each_revision @revisions.each { |r| yield( r ) } end |
#new_revision ⇒ Object
642 643 644 645 646 |
# File 'lib/P4.rb', line 642 def new_revision r = P4::Revision.new( @depot_file ) @revisions.push( r ) return r end |