Class: BuildTool::Cfg::GitOptionsDeclarationNodeVisitor

Inherits:
ListVisitor show all
Includes:
GitOptionDeclarationMethods
Defined in:
lib/build-tool/cfg/visitor.rb

Instance Attribute Summary

Attributes inherited from MJ::VisitorBase

#configuration

Instance Method Summary collapse

Methods included from GitOptionDeclarationMethods

included

Methods inherited from ListVisitor

#visit, #visit_nodes

Methods inherited from MJ::VisitorBase

#visit_Object

Constructor Details

#initialize(configuration) ⇒ GitOptionsDeclarationNodeVisitor

Returns a new instance of GitOptionsDeclarationNodeVisitor.



402
403
404
405
406
407
408
# File 'lib/build-tool/cfg/visitor.rb', line 402

def initialize( configuration )
    super( configuration )
    if BuildTool::VCS::GitConfiguration.global_config.nil?
        BuildTool::VCS::GitConfiguration.global_config = BuildTool::VCS::GitConfiguration.new
    end
    @vcs = BuildTool::VCS::GitConfiguration.global_config
end