Module: BuildTool::Cfg::GitOptionDeclarationMethods::InstanceMethods

Defined in:
lib/build-tool/cfg/visitor.rb

Instance Method Summary collapse

Instance Method Details

#visit_GitOptionNode(node) ⇒ Object



387
388
389
390
391
392
393
# File 'lib/build-tool/cfg/visitor.rb', line 387

def visit_GitOptionNode( node )
    if ( node.args[0] == :GLOBAL )
        @vcs.global_options[ node.values[0] ] = node.values[1]
    else
        @vcs.options[ node.values[0] ] = node.values[1]
    end
end

#visit_GitOptionsDeclarationNode(node) ⇒ Object



383
384
385
# File 'lib/build-tool/cfg/visitor.rb', line 383

def visit_GitOptionsDeclarationNode( node )
    visit_nodes( node.values )
end