Class: Simp::Cli::Config::ActionItem
- Includes:
- SafeApplying
- Defined in:
- lib/simp/cli/config/item.rb
Overview
A special Item that is never interactive, but applies some configuration
Direct Known Subclasses
Item::AddLdapToHiera, Item::AnswersYAMLFileWriter, Item::Certificates, Item::HostnameConf, Item::NetworkConf, Item::PuppetAutosign, Item::PuppetConf, Item::PuppetFileServer, Item::PuppetHostsEntry, Item::RemoveLdapFromHiera, Item::RenameFqdnYaml, Item::YumRepositories
Instance Attribute Summary
Attributes inherited from 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
-
#apply ⇒ Object
internal method to change the system (returns the result of the apply).
-
#initialize ⇒ ActionItem
constructor
A new instance of ActionItem.
- #query ⇒ Object
- #to_yaml_s ⇒ Object
-
#validate(x) ⇒ Object
don’t be interactive!.
Methods included from SafeApplying
Methods inherited from Item
#default_value, #highline_question_type, #next_items, #not_valid_message, #os_value, #print_banner, #print_summary, #puppet_value, #query_ask, #query_extras, #query_status, #recommended_value, #safe_apply, #say_blue, #say_green, #say_red, #say_yellow
Constructor Details
#initialize ⇒ ActionItem
Returns a new instance of ActionItem.
444 445 446 |
# File 'lib/simp/cli/config/item.rb', line 444 def initialize super end |
Instance Method Details
#apply ⇒ Object
internal method to change the system (returns the result of the apply)
449 |
# File 'lib/simp/cli/config/item.rb', line 449 def apply; nil; end |
#query ⇒ Object
453 |
# File 'lib/simp/cli/config/item.rb', line 453 def query; nil; end |
#to_yaml_s ⇒ Object
454 |
# File 'lib/simp/cli/config/item.rb', line 454 def to_yaml_s; nil; end |
#validate(x) ⇒ Object
don’t be interactive!
452 |
# File 'lib/simp/cli/config/item.rb', line 452 def validate( x ); true; end |