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