Module: Tomo::Configuration::DSL::HostsAndSettings
- Included in:
- ConfigFile, EnvironmentBlock
- Defined in:
- lib/tomo/configuration/dsl/hosts_and_settings.rb
Instance Method Summary collapse
- #host(address, port: 22, roles: [], log_prefix: nil, privileged_user: "root") ⇒ Object
- #set(settings) ⇒ Object
Instance Method Details
#host(address, port: 22, roles: [], log_prefix: nil, privileged_user: "root") ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/tomo/configuration/dsl/hosts_and_settings.rb', line 12 def host(address, port: 22, roles: [], log_prefix: nil, privileged_user: "root") @config.hosts << Host.parse( address, privileged_user:, port:, roles:, log_prefix: ) self end |
#set(settings) ⇒ Object
7 8 9 10 |
# File 'lib/tomo/configuration/dsl/hosts_and_settings.rb', line 7 def set(settings) @config.settings.merge!(settings) self end |