Module: Taketo
- Extended by:
- Taketo
- Included in:
- Taketo
- Defined in:
- lib/taketo.rb,
lib/taketo/dsl.rb,
lib/taketo/actions.rb,
lib/taketo/printer.rb,
lib/taketo/support.rb,
lib/taketo/commands.rb,
lib/taketo/constructs.rb,
lib/taketo/actions/list.rb,
lib/taketo/actions/view.rb,
lib/taketo/actions/login.rb,
lib/taketo/node_resolver.rb,
lib/taketo/config_visitor.rb,
lib/taketo/group_resolver.rb,
lib/taketo/actions/matches.rb,
lib/taketo/server_resolver.rb,
lib/taketo/associated_nodes.rb,
lib/taketo/config_traverser.rb,
lib/taketo/config_validator.rb,
lib/taketo/constructs/group.rb,
lib/taketo/constructs/config.rb,
lib/taketo/constructs/server.rb,
lib/taketo/constructs/command.rb,
lib/taketo/constructs/project.rb,
lib/taketo/constructs_factory.rb,
lib/taketo/group_list_visitor.rb,
lib/taketo/actions/base_action.rb,
lib/taketo/actions/edit_config.rb,
lib/taketo/destination_matcher.rb,
lib/taketo/support/inflections.rb,
lib/taketo/commands/ssh_command.rb,
lib/taketo/commands/ssh_options.rb,
lib/taketo/commands/mosh_command.rb,
lib/taketo/config_printer_visitor.rb,
lib/taketo/constructs/environment.rb,
lib/taketo/constructs/base_construct.rb,
lib/taketo/actions/generate_ssh_config.rb,
lib/taketo/ssh_config_generator_visitor.rb,
lib/taketo/support/named_nodes_collection.rb
Defined Under Namespace
Modules: Actions, AssociatedNodes, Commands, Constructs, Printer, Support
Classes: AmbiguousDestinationError, ConfigError, ConfigPrinterVisitor, ConfigTraverser, ConfigValidator, ConfigValidatorVisitor, ConfigVisitor, ConstructsFactory, DSL, DestinationMatcher, GroupListVisitor, GroupResolver, NodeResolver, NodesNotDefinedError, NonExistentDestinationError, SSHConfigGeneratorVisitor, ServerResolver
Constant Summary
collapse
- VERSION =
File.read(version_file).freeze
Instance Method Summary
collapse
Instance Method Details
#downcased_construct_class_name(klass) ⇒ Object
6
7
8
|
# File 'lib/taketo/config_visitor.rb', line 6
def downcased_construct_class_name(klass)
klass.name.gsub("Taketo::Constructs::", "").gsub(/[A-Z][^A-Z]*/) { |s| s.gsub("::", "").downcase + "_" }.chop
end
|
#SimpleCollector(*types) ⇒ Object
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/taketo/config_visitor.rb', line 29
def SimpleCollector(*types)
Class.new(ConfigVisitor) do
attr_reader :result
def initialize
@result = []
end
types.each do |t|
visit t do |n|
@result << n
end
end
end
end
|