Class: Capistrano::Deploy::SCM::Accurev::InternalRevision

Class | Capistrano::Deploy::SCM::Accurev::InternalRevision
In: | lib/capistrano/recipes/deploy/scm/accurev.rb lib/capistrano/recipes/deploy/scm/accurev.rb
Parent: | Object

### Methods

== == new new parse parse psuedo_revision? psuedo_revision? to_s to_s

### Attributes

stream | [R] |
stream | [R] |
transaction_id | [R] |
transaction_id | [R] |

### Public Class methods

new(stream, transaction_id)

[Source]

         # File lib/capistrano/recipes/deploy/scm/accurev.rb, line 149
    149:           def initialize(stream, transaction_id)
    150:             @stream = stream
    151:             @transaction_id = transaction_id
    152:           end

new(stream, transaction_id)

[Source]

         # File lib/capistrano/recipes/deploy/scm/accurev.rb, line 149
    149:           def initialize(stream, transaction_id)
    150:             @stream = stream
    151:             @transaction_id = transaction_id
    152:           end

parse(string)

[Source]

         # File lib/capistrano/recipes/deploy/scm/accurev.rb, line 140
    140:           def self.parse(string)
    141:             match = /([^\/]+)(\/(.+)){0,1}/.match(string)
    142:             raise "Unrecognized revision identifier: #{string}" unless match
    143:
    144:             stream = match[1]
    145:             transaction_id = match[3] || 'highest'
    146:             InternalRevision.new(stream, transaction_id)
    147:           end

parse(string)

[Source]

         # File lib/capistrano/recipes/deploy/scm/accurev.rb, line 140
    140:           def self.parse(string)
    141:             match = /([^\/]+)(\/(.+)){0,1}/.match(string)
    142:             raise "Unrecognized revision identifier: #{string}" unless match
    143:
    144:             stream = match[1]
    145:             transaction_id = match[3] || 'highest'
    146:             InternalRevision.new(stream, transaction_id)
    147:           end

### Public Instance methods

==(other)

[Source]

         # File lib/capistrano/recipes/deploy/scm/accurev.rb, line 162
    162:           def ==(other)
    163:             (stream == other.stream) && (transaction_id == other.transaction_id)
    164:           end

==(other)

[Source]

         # File lib/capistrano/recipes/deploy/scm/accurev.rb, line 162
    162:           def ==(other)
    163:             (stream == other.stream) && (transaction_id == other.transaction_id)
    164:           end

psuedo_revision?()

[Source]

         # File lib/capistrano/recipes/deploy/scm/accurev.rb, line 154
    154:           def psuedo_revision?
    155:             @transaction_id == 'highest'
    156:           end

psuedo_revision?()

[Source]

         # File lib/capistrano/recipes/deploy/scm/accurev.rb, line 154
    154:           def psuedo_revision?
    155:             @transaction_id == 'highest'
    156:           end

to_s()

[Source]

         # File lib/capistrano/recipes/deploy/scm/accurev.rb, line 158
    158:           def to_s
    159:             "#{stream}/#{transaction_id}"
    160:           end

to_s()

[Source]

         # File lib/capistrano/recipes/deploy/scm/accurev.rb, line 158
    158:           def to_s
    159:             "#{stream}/#{transaction_id}"
    160:           end

[Validate]