Class: Simp::Cli::Config::Item::LogServers
- Inherits:
-
ListItem
- Object
- Simp::Cli::Config::Item
- ListItem
- Simp::Cli::Config::Item::LogServers
- Defined in:
- lib/simp/cli/config/item/log_servers.rb
Instance Attribute Summary
Attributes inherited from ListItem
Attributes inherited from Simp::Cli::Config::Item
#allow_user_apply, #config_items, #description, #die_on_apply_fail, #fact, #fail_on_missing_answer, #key, #next_items_tree, #silent, #skip_apply, #skip_query, #skip_yaml, #value
Instance Method Summary collapse
-
#initialize ⇒ LogServers
constructor
A new instance of LogServers.
- #os_value ⇒ Object
- #validate_item(item) ⇒ Object
Methods inherited from ListItem
#highline_question_type, #not_valid_message, #query_extras, #validate
Methods inherited from Simp::Cli::Config::Item
#apply, #default_value, #highline_question_type, #next_items, #not_valid_message, #print_banner, #print_summary, #puppet_value, #query, #query_ask, #query_extras, #query_status, #recommended_value, #safe_apply, #say_blue, #say_green, #say_red, #say_yellow, #to_yaml_s, #validate
Constructor Details
#initialize ⇒ LogServers
Returns a new instance of LogServers.
10 11 12 13 14 15 |
# File 'lib/simp/cli/config/item/log_servers.rb', line 10 def initialize super @key = 'log_servers' @description = %Q{Your log server(s). Only use hostnames here if at all possible.} @allow_empty_list = true end |
Instance Method Details
#os_value ⇒ Object
17 18 19 |
# File 'lib/simp/cli/config/item/log_servers.rb', line 17 def os_value nil end |
#validate_item(item) ⇒ Object
21 22 23 24 25 |
# File 'lib/simp/cli/config/item/log_servers.rb', line 21 def validate_item item ( Simp::Cli::Config::Utils.validate_hostname( item ) || Simp::Cli::Config::Utils.validate_fqdn( item ) || Simp::Cli::Config::Utils.validate_ip( item ) ) end |