mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Detect multiple machines configuration before connecting to vm (PY-11731).
This commit is contained in:
@@ -37,8 +37,9 @@ public abstract class VagrantSupport {
|
||||
public static VagrantSupport getInstance() {
|
||||
return ServiceManager.getService(VagrantSupport.class);
|
||||
}
|
||||
|
||||
public abstract ListenableFuture<RemoteCredentials> computeVagrantSettings(@Nullable Project project, @NotNull String vagrantFolder, @Nullable String machineName);
|
||||
public abstract ListenableFuture<RemoteCredentials> computeVagrantSettings(@Nullable Project project,
|
||||
@NotNull String vagrantFolder,
|
||||
@Nullable String machineName);
|
||||
|
||||
public static void showMissingVagrantSupportMessage(final @Nullable Project project) {
|
||||
UIUtil.invokeLaterIfNeeded(new Runnable() {
|
||||
@@ -64,12 +65,17 @@ public abstract class VagrantSupport {
|
||||
public abstract List<String> getMachineNames(@NotNull String instanceFolder);
|
||||
|
||||
public boolean isNotReadyForSsh(Throwable t) {
|
||||
return t.getMessage().contains("not yet ready for SSH");
|
||||
return isNotReadyForSsh(t.getMessage());
|
||||
}
|
||||
|
||||
public static boolean isNotReadyForSsh(@NotNull String errorMessage) {
|
||||
return errorMessage.contains("not yet ready for SSH");
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public abstract String findVagrantFolder(@NotNull Project project);
|
||||
|
||||
|
||||
public static class MultipleMachinesException extends Exception {}
|
||||
public static class MultipleMachinesException extends Exception {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user