class HammerCLIForemanVirtWhoConfigure::VirtWhoConfig::DeployCommand

Public Instance Methods

execute() click to toggle source
# File lib/hammer_cli_foreman_virt_who_configure/config.rb, line 172
def execute
  script = send_request
  if system_caller.system(script)
    HammerCLI::EX_OK
  else
    HammerCLI::EX_SOFTWARE
  end
end
system_caller() click to toggle source
# File lib/hammer_cli_foreman_virt_who_configure/config.rb, line 185
def system_caller
  context[:system_caller] || HammerCLIForemanVirtWhoConfigure::SystemCaller.new
end
transform_format(data) click to toggle source
# File lib/hammer_cli_foreman_virt_who_configure/config.rb, line 181
def transform_format(data)
  data['virt_who_config_script']
end