equal
deleted
inserted
replaced
124 SSH.print_local(host.name) + if_proper(rest, ":" + rest) |
124 SSH.print_local(host.name) + if_proper(rest, ":" + rest) |
125 } |
125 } |
126 |
126 |
127 def message(msg: String): String = "Host " + quote(host.name) + if_proper(msg, ": " + msg) |
127 def message(msg: String): String = "Host " + quote(host.name) + if_proper(msg, ": " + msg) |
128 |
128 |
|
129 def open_ssh(options: Options): SSH.System = |
|
130 SSH.open_system(options ++ host.options, ssh_host, port = host.port, user = host.user) |
|
131 |
129 def open_session(build_context: Build.Context, progress: Progress = new Progress): Session = { |
132 def open_session(build_context: Build.Context, progress: Progress = new Progress): Session = { |
130 val session_options = build_context.build_options ++ host.options |
133 val ssh_options = build_context.build_options ++ host.options |
131 val ssh = SSH.open_session(session_options, ssh_host, port = host.port, user = host.user) |
134 val ssh = open_ssh(build_context.build_options) |
132 new Session(build_context, host, session_options, ssh, progress) |
135 new Session(build_context, host, ssh_options, ssh, progress) |
133 } |
136 } |
134 } |
137 } |
135 |
138 |
136 |
139 |
137 /* SSH sessions */ |
140 /* SSH sessions */ |