Class: Simp::Cli::Config::Item::UseIPtables

Inherits:
YesNoItem show all
Defined in:
lib/simp/cli/config/item/use_iptables.rb

Instance Attribute Summary

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

Methods inherited from YesNoItem

#highline_question_type, #next_items, #not_valid_message, #to_yaml_s, #validate

Methods inherited from Simp::Cli::Config::Item

#apply, #default_value, #highline_question_type, #next_items, #not_valid_message, #os_value, #print_banner, #print_summary, #puppet_value, #query, #query_ask, #query_extras, #query_status, #safe_apply, #say_blue, #say_green, #say_red, #say_yellow, #to_yaml_s, #validate

Constructor Details

#initializeUseIPtables

Returns a new instance of UseIPtables.



9
10
11
12
13
14
15
16
# File 'lib/simp/cli/config/item/use_iptables.rb', line 9

def initialize
  super
  @key         = 'use_iptables'
  @description = %Q{Whether or not to use iptables on this system.

If there is code that calls the IPTables native type directly, this option may
not function properly.  We are looking into solutions for this issue.}
end

Instance Method Details



18
19
20
# File 'lib/simp/cli/config/item/use_iptables.rb', line 18

def recommended_value
  os_value || 'yes'
end