Revision ce1e6b20
Added by Frank Sweetser almost 14 years ago
- ID ce1e6b20c35570a77ad0f7e2c2b5b41ffa5d3615
app/controllers/hosts_controller.rb | ||
---|---|---|
def puppetrun
|
||
host = Host.find params[:id]
|
||
if GW::Puppet.run host.name
|
||
render :text => "Successfully executed, check log files for more details"
|
||
flash[:foreman_notice] = "Successfully executed, check log files for more details"
|
||
else
|
||
render :text => "Failed, check log files"
|
||
flash[:foreman_error] = "Failed, check log files"
|
||
end
|
||
redirect_to :back
|
||
end
|
||
|
||
def setBuild
|
Also available in: Unified diff
Change puppetrun output to flash message