internal static IConsoleCommand GetDSMConsole(SshClient client)
        {
            Dictionary <string, string> properties = GetVersionProperties(client);
            IDSMVersion version = new DSMVersion4(properties);

            if (version.MajorVersion >= 6)
            {
                return(new ConsoleCommandDSM6(properties));
            }
            else
            {
                return(new ConsoleCommandDSM4(properties));
            }
        }
Exemple #2
0
        internal static IConsoleCommand GetDSMConsole(SshClient client)
        {
            string home = GetHomePath(client);

            if (!home.EndsWith("/"))
            {
                home += "/";
            }
            Dictionary <string, string> properties = GetVersionProperties(client);
            IDSMVersion version = new DSMVersion4(properties);

            if (version.MajorVersion >= 6)
            {
                return(new ConsoleCommandDSM6(properties, home));
            }
            else
            {
                return(new ConsoleCommandDSM4(properties, home));
            }
        }