Class: BuildTool::VCS::ArchiveConfiguration

Inherits:
BaseConfiguration show all
Defined in:
lib/build-tool/vcs/archive.rb

Instance Attribute Summary collapse

Attributes inherited from BaseConfiguration

#module

Instance Method Summary collapse

Methods inherited from BaseConfiguration

#local_path

Constructor Details

#initializeArchiveConfiguration

Returns a new instance of ArchiveConfiguration.



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

def initialize
    super
    @repository = nil
    @remote_path = nil
end

Instance Attribute Details

#remote_pathObject



42
43
44
45
46
47
# File 'lib/build-tool/vcs/archive.rb', line 42

def remote_path
    if @remote_path.nil?
        return @module.name
    end
    @remote_path
end

#repositoryObject



34
35
36
37
38
39
# File 'lib/build-tool/vcs/archive.rb', line 34

def repository
    if @repository.nil?
         raise ConfigurationError, "No repository configured for module #{mod.name}."
    end
    @repository
end

Instance Method Details

#copy_configuration(other) ⇒ Object



29
30
31
# File 'lib/build-tool/vcs/archive.rb', line 29

def copy_configuration( other )
    super
end

#nameObject



13
14
15
# File 'lib/build-tool/vcs/archive.rb', line 13

def name
    "archive"
end

#vcs(mod) ⇒ Object

Raises:

  • (StandardError)


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

def vcs( mod )
    raise StandardError if @module and ! mod.equal?( @module )
    @module = mod
    Archive.new( self )
end