Exemple #1
0
        // ---------------- Constructor ----------------

        static int Main(string[] args)
        {
            try
            {
                bool showHelp    = false;
                bool showVersion = false;
                bool showLicense = false;
                bool showCredits = false;
                bool showReadme  = false;

                bool dryRun = false;

                int verbosity = 0;

                SshConfig defaultConfig = new SshConfig();
                SshConfig actualConfig  = new SshConfig();

                OptionSet options = new OptionSet
                {
                    {
                        "h|help",
                        "Shows this message and exits.",
                        v => showHelp = (v != null)
                    },
                    {
                        "version",
                        "Shows the version and exits.",
                        v => showVersion = (v != null)
                    },
Exemple #2
0
        // ---------------- Constructor ----------------

        public SshRunner(SshConfig config, GenericLogger logger)
        {
            this.config          = config;
            this.logger          = logger;
            this.lockFileManager = new LockFileManager(config, logger);
        }
Exemple #3
0
        // ---------------- Constructor ----------------

        public LockFileManager(SshConfig sshConfig, GenericLogger logger)
        {
            this.sshConfig = sshConfig;
            this.logger    = logger;
        }