Class: Origen::RevisionControl::Perforce

Inherits:
Base show all
Defined in:
lib/origen/revision_control/perforce.rb

Instance Attribute Summary

Attributes inherited from Base

#local, #remote, #remotes_method

Instance Method Summary collapse

Methods inherited from Base

#build, #changes, #checkin, #checkout, #current_branch, #diff_cmd, #dssc?, #git?, #local_modifications, #p4?, #root, #svn?, #unmanaged

Constructor Details

#initialize(options = {}) ⇒ Perforce

Returns a new instance of Perforce



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/origen/revision_control/perforce.rb', line 4

def initialize(options = {})
  super
  begin
    require 'origen_perforce'
  rescue LoadError
    puts 'To use the Perforce revision control system with Origen, you must add the following gem to your Gemfile:'
    puts
    puts "  gem 'origen_perforce'"
    puts
    exit 1
  end
  _initialize_(options)
end