Class: HammerCLIForemanVirtWhoConfigure::VirtWhoConfig::DeployCommand
- Inherits:
-
HammerCLIForeman::Command
- Object
- HammerCLIForeman::Command
- HammerCLIForemanVirtWhoConfigure::VirtWhoConfig::DeployCommand
- Defined in:
- lib/hammer_cli_foreman_virt_who_configure/config.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
174 175 176 177 178 179 180 181 |
# File 'lib/hammer_cli_foreman_virt_who_configure/config.rb', line 174 def execute script = send_request if system_caller.system(script) HammerCLI::EX_OK else HammerCLI::EX_SOFTWARE end end |
#system_caller ⇒ Object
187 188 189 |
# File 'lib/hammer_cli_foreman_virt_who_configure/config.rb', line 187 def system_caller context[:system_caller] || HammerCLIForemanVirtWhoConfigure::SystemCaller.new end |
#transform_format(data) ⇒ Object
183 184 185 |
# File 'lib/hammer_cli_foreman_virt_who_configure/config.rb', line 183 def transform_format(data) data['virt_who_config_script'] end |