Class: BuildTool::VCS::MercurialConfiguration

Inherits:
BaseConfiguration show all
Includes:
MJ::Mixins::InheritedAttributes
Defined in:
lib/build-tool/vcs/mercurial.rb

Instance Attribute Summary collapse

Attributes inherited from BaseConfiguration

#module

Instance Method Summary collapse

Methods included from MJ::Mixins::InheritedAttributes

included

Methods inherited from BaseConfiguration

#local_path

Constructor Details

#initializeMercurialConfiguration

Returns a new instance of MercurialConfiguration.



19
20
21
22
23
# File 'lib/build-tool/vcs/mercurial.rb', line 19

def initialize
    super
    @url = nil
    @track = nil
end

Instance Attribute Details

#trackObject



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

def track
    return @track if @track
    return parent.track if @parent
    return 'default'
end

Instance Method Details

#copy_configuration(other) ⇒ Object



40
41
42
# File 'lib/build-tool/vcs/mercurial.rb', line 40

def copy_configuration( other )
    super
end

#nameObject



15
16
17
# File 'lib/build-tool/vcs/mercurial.rb', line 15

def name
    "mercurial"
end

#vcs(mod) ⇒ Object

Raises:

  • (StandardError)


25
26
27
28
29
# File 'lib/build-tool/vcs/mercurial.rb', line 25

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