Fix bug.
This commit is contained in:
parent
28cb9fe1e4
commit
44464381d4
|
@ -141,7 +141,7 @@ namespace :exec_commands do
|
|||
outputs = []
|
||||
@flag = (@type == "exec_all")
|
||||
if update
|
||||
update_thread_infos_for_exec("execing #{command} on on <a href='#{((@site_construct.get_port == "443") ? "https" : "http")}://#{@site_construct.domain_name}#{((@site_construct.get_port=="80" || @site_construct.get_port=="443") ? "" : (':'+@site_construct.get_port))}'>#{@site_construct.domain_name}</a>") if @flag
|
||||
update_thread_infos_for_exec("execing #{command} on on <a href='#{((@site_construct.get_port == "443") ? "https" : "http")}://#{@site_construct.domain_name}#{((@site_construct.get_port=="80" || @site_construct.get_port=="443" || @site_construct.get_port.blank?) ? "" : (':'+@site_construct.get_port))}'>#{@site_construct.domain_name}</a>") if @flag
|
||||
update_infos_for_exec("execing #{command}")
|
||||
end
|
||||
session.open_channel do |channel|
|
||||
|
@ -169,7 +169,7 @@ namespace :exec_commands do
|
|||
end
|
||||
channel.on_close do |ch|
|
||||
if update
|
||||
update_thread_infos_for_exec("finish execing #{command} on <a href='#{((@site_construct.get_port == "443") ? "https" : "http")}://#{@site_construct.domain_name}#{((@site_construct.get_port=="80" || @site_construct.get_port=="443") ? "" : (':'+@site_construct.get_port))}'>#{@site_construct.domain_name}</a>") if @flag
|
||||
update_thread_infos_for_exec("finish execing #{command} on <a href='#{((@site_construct.get_port == "443") ? "https" : "http")}://#{@site_construct.domain_name}#{((@site_construct.get_port=="80" || @site_construct.get_port=="443" || @site_construct.get_port.blank?) ? "" : (':'+@site_construct.get_port))}'>#{@site_construct.domain_name}</a>") if @flag
|
||||
update_infos_for_exec("finish execing #{command}")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue