Class: BuildTool::Cfg::SvnDeclarationNodeVisitor
- Inherits:
-
ListVisitor
- Object
- VisitorBase
- ListVisitor
- BuildTool::Cfg::SvnDeclarationNodeVisitor
- Defined in:
- lib/build-tool/cfg/visitor.rb
Instance Attribute Summary
Attributes inherited from VisitorBase
Instance Method Summary collapse
-
#initialize(configuration, vcs) ⇒ SvnDeclarationNodeVisitor
constructor
A new instance of SvnDeclarationNodeVisitor.
- #visit_RemotePathNode(node) ⇒ Object
- #visit_RepositoryDeclarationNode(node) ⇒ Object
- #visit_SvnCheckoutOnlyNode(node) ⇒ Object
- #visit_SvnDeclarationNode(node) ⇒ Object
- #visit_UseRepositoryNode(node) ⇒ Object
Methods inherited from ListVisitor
Methods inherited from VisitorBase
Constructor Details
#initialize(configuration, vcs) ⇒ SvnDeclarationNodeVisitor
Returns a new instance of SvnDeclarationNodeVisitor.
728 729 730 731 |
# File 'lib/build-tool/cfg/visitor.rb', line 728 def initialize( configuration, vcs ) super( configuration ) @vcs = vcs end |
Instance Method Details
#visit_RemotePathNode(node) ⇒ Object
755 756 757 |
# File 'lib/build-tool/cfg/visitor.rb', line 755 def visit_RemotePathNode( node ) @vcs.remote_path = node.value end |
#visit_RepositoryDeclarationNode(node) ⇒ Object
742 743 744 745 |
# File 'lib/build-tool/cfg/visitor.rb', line 742 def visit_RepositoryDeclarationNode( node ) visitor = RepositoryDeclarationNodeVisitor.new( configuration ) @vcs.repository = node.accept( visitor ) end |
#visit_SvnCheckoutOnlyNode(node) ⇒ Object
738 739 740 |
# File 'lib/build-tool/cfg/visitor.rb', line 738 def visit_SvnCheckoutOnlyNode( node ) @vcs.only = node.value.split( / +/ ) end |
#visit_SvnDeclarationNode(node) ⇒ Object
733 734 735 736 |
# File 'lib/build-tool/cfg/visitor.rb', line 733 def visit_SvnDeclarationNode( node ) visit_nodes( node.values ) return @vcs end |
#visit_UseRepositoryNode(node) ⇒ Object
747 748 749 750 751 752 753 |
# File 'lib/build-tool/cfg/visitor.rb', line 747 def visit_UseRepositoryNode( node ) repo = configuration.repository( node.value ) if repo.nil? raise ConfigurationError, "Unknown repository #{node.value}!" end @vcs.repository = repo end |