Module: CommandMixins::Hostname
- Included in:
- DRACCommands::Hostname, SMCCommands::Hostname
- Defined in:
- lib/setup_oob/command/mixins.rb
Instance Method Summary collapse
Instance Method Details
#_converge! ⇒ Object
29 30 31 32 33 34 |
# File 'lib/setup_oob/command/mixins.rb', line 29 def _converge! unless _converged? logger.info(" - Setting hostname (#{desired_hostname})") set_hostname end end |
#_converged? ⇒ Boolean
23 24 25 26 27 |
# File 'lib/setup_oob/command/mixins.rb', line 23 def _converged? hn = hostname logger.debug("'#{hn}' vs '#{desired_hostname}'") hn == desired_hostname end |
#desired_hostname ⇒ Object
36 37 38 |
# File 'lib/setup_oob/command/mixins.rb', line 36 def desired_hostname @data end |