Class: BuildTool::Cfg::StatementVisitor
Overview
Instance Attribute Summary
#configuration
Instance Method Summary
collapse
Methods inherited from ListVisitor
#visit, #visit_nodes
#initialize, #visit_Object
Instance Method Details
#visit_BuildSystemDeclarationNode(node) ⇒ Object
83
84
85
86
87
88
89
90
91
|
# File 'lib/build-tool/cfg/visitor.rb', line 83
def visit_BuildSystemDeclarationNode( node )
raise ArgumentsError if node.values.length != 2
name = node.values[0]
bs = configuration.build_system_defaults( name )
visitor = BuildSystemDeclarationNodeVisitor.new(
configuration,
bs )
node.accept( visitor )
end
|
#visit_ConfigurationFileList(node) ⇒ Object
93
94
95
|
# File 'lib/build-tool/cfg/visitor.rb', line 93
def visit_ConfigurationFileList( node )
self.visit(node)
end
|
#visit_DisableFeatureNode(node) ⇒ Object
106
107
108
|
# File 'lib/build-tool/cfg/visitor.rb', line 106
def visit_DisableFeatureNode( node )
set_feature_status( node.value, false, node.options[:global] )
end
|
#visit_DisableModuleNode(node) ⇒ Object
114
115
116
|
# File 'lib/build-tool/cfg/visitor.rb', line 114
def visit_DisableModuleNode( node )
set_module_status( node.value, false, node.options[:global] )
end
|
#visit_EnableFeatureNode(node) ⇒ Object
102
103
104
|
# File 'lib/build-tool/cfg/visitor.rb', line 102
def visit_EnableFeatureNode( node )
set_feature_status( node.value, true, node.options[:global] )
end
|
#visit_EnableModuleNode(node) ⇒ Object
110
111
112
|
# File 'lib/build-tool/cfg/visitor.rb', line 110
def visit_EnableModuleNode( node )
set_module_status( node.value, true, node.options[:global] )
end
|
#visit_EnvironmentDeclarationNode(node) ⇒ Object
97
98
99
100
|
# File 'lib/build-tool/cfg/visitor.rb', line 97
def visit_EnvironmentDeclarationNode( node )
visitor = EnvironmentDeclarationNodeVisitor.new( configuration )
node.accept( visitor )
end
|
#visit_FeatureNode(node) ⇒ Object
118
119
120
121
|
# File 'lib/build-tool/cfg/visitor.rb', line 118
def visit_FeatureNode( node )
visitor = FeatureNodeVisitor.new( configuration )
node.accept( visitor )
end
|
#visit_GitOptionsDeclarationNode(node) ⇒ Object
123
124
125
126
|
# File 'lib/build-tool/cfg/visitor.rb', line 123
def visit_GitOptionsDeclarationNode( node )
visitor = GitOptionsDeclarationNodeVisitor.new( configuration )
node.accept( visitor )
end
|
#visit_IncludeNode(node) ⇒ Object
128
129
130
131
|
# File 'lib/build-tool/cfg/visitor.rb', line 128
def visit_IncludeNode( node )
visitor = IncludeNodeVisitor.new( configuration )
node.accept( visitor )
end
|
#visit_ModuleDeclarationNode(node) ⇒ Object
133
134
135
136
|
# File 'lib/build-tool/cfg/visitor.rb', line 133
def visit_ModuleDeclarationNode( node )
visitor = ModuleDeclarationNodeVisitor.new( configuration )
node.accept( visitor )
end
|
#visit_RepositoryDeclarationNode(node) ⇒ Object
138
139
140
141
|
# File 'lib/build-tool/cfg/visitor.rb', line 138
def visit_RepositoryDeclarationNode( node )
visitor = RepositoryDeclarationNodeVisitor.new( configuration )
node.accept(visitor)
end
|
#visit_ServerDeclarationNode(node) ⇒ Object
143
144
145
146
|
# File 'lib/build-tool/cfg/visitor.rb', line 143
def visit_ServerDeclarationNode( node )
visitor = ServerDeclarationNodeVisitor.new( configuration )
node.accept(visitor)
end
|
#visit_SshKeyDeclarationNode(node) ⇒ Object
148
149
150
151
|
# File 'lib/build-tool/cfg/visitor.rb', line 148
def visit_SshKeyDeclarationNode( node )
visitor = SshKeyDeclarationNodeVisitor.new( configuration )
node.accept(visitor)
end
|