Sha256: 2e0bd72b107be637a8f2b1f332efdd7ccd84e504569df80494ce43a8d14dd5c2

Contents?: true

Size: 1.49 KB

Versions: 122

Compression:

Stored size: 1.49 KB

Contents

module Origen
  module RevisionControl
    require 'origen/revision_control/base'
    autoload :DesignSync, 'origen/revision_control/design_sync'
    autoload :Git,        'origen/revision_control/git'
    autoload :Subversion, 'origen/revision_control/subversion'

    IGNORE_DIRS =  %w(
      .ws .lsf log output web coverage .ref .yardoc .collection .bin
      .session .bundle .tpc pkg tmp lbin .git
    )

    IGNORE_FILES = %w(
      target/.default release_note.txt *.swp *.swo *~ .bin
      list/referenced.list tags .ref .pdm/pi_attributes.txt
      environment/.default
    )

    # Creates a new revision controller object based on the supplied :local and :remote
    # options.
    #
    # The revision control system will be worked out from the supplied remote value. This method
    # should therefore be used whenever the remote is a variable that could refer to many different
    # systems.
    #
    # @example
    #
    #   # I know that the remote refers to DesignSync
    #   rc = Origen::RevisionControl::DesignSync.new remote: "sync//....", local: "my/path"
    #
    #   # The remote is a variable and I don't know the type
    #   rc = Origen::RevisionControl.new remote: rc_url, local: "my/path"
    def self.new(options = {})
      case
      when options[:remote] =~ /^sync/
        DesignSync.new(options)
      when options[:remote] =~ /git/
        Git.new(options)
      else
        fail "Could not work out the revision control system for: #{options[:remote]}"
      end
    end
  end
end

Version data entries

122 entries across 122 versions & 1 rubygems

Version Path
origen-0.31.0 lib/origen/revision_control.rb
origen-0.30.0 lib/origen/revision_control.rb
origen-0.29.0 lib/origen/revision_control.rb
origen-0.28.2 lib/origen/revision_control.rb
origen-0.28.1 lib/origen/revision_control.rb
origen-0.28.0 lib/origen/revision_control.rb
origen-0.27.0 lib/origen/revision_control.rb
origen-0.26.0 lib/origen/revision_control.rb
origen-0.25.1 lib/origen/revision_control.rb
origen-0.25.0 lib/origen/revision_control.rb
origen-0.24.0 lib/origen/revision_control.rb
origen-0.23.0 lib/origen/revision_control.rb
origen-0.22.0 lib/origen/revision_control.rb
origen-0.21.0 lib/origen/revision_control.rb
origen-0.20.3 lib/origen/revision_control.rb
origen-0.20.2 lib/origen/revision_control.rb
origen-0.20.1 lib/origen/revision_control.rb
origen-0.20.0 lib/origen/revision_control.rb
origen-0.13.0 lib/origen/revision_control.rb
origen-0.12.1 lib/origen/revision_control.rb