Class: BuildTool::VCS::BaseConfiguration Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/build-tool/vcs/base.rb

Overview

This class is abstract.

Base class for version control system configurations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBaseConfiguration

Returns a new instance of BaseConfiguration.



24
25
26
# File 'lib/build-tool/vcs/base.rb', line 24

def initialize
    @module = nil
end

Instance Attribute Details

#moduleObject (readonly)

The associated module of this configuration object.



17
18
19
# File 'lib/build-tool/vcs/base.rb', line 17

def module
  @module
end

#nameObject (readonly)

The name of the version control system

Raises:

  • (StandardError)


14
15
16
# File 'lib/build-tool/vcs/base.rb', line 14

def name
  @name
end

Instance Method Details

#copy_configuration(other) ⇒ Object



32
33
34
# File 'lib/build-tool/vcs/base.rb', line 32

def copy_configuration( other )
    @module = nil
end

#local_pathObject



28
29
30
# File 'lib/build-tool/vcs/base.rb', line 28

def local_path
    @module.source_directory
end