Esempio n. 1
0
        protected override void ConfigureObjectCollector()
        {
            if (base.ObjectCollector == null)
            {
                var commandRunner = ((SSHConnectionProvider)ConnectionProvider).SshCommandLineRunner;
                var newRPMInfoCollector = new RPMInfoCollector() { CommandRunner = commandRunner };

                base.ObjectCollector =
                    new RPMInfoObjectCollector() { RPMInfosCollector = newRPMInfoCollector };
            }

            if (base.ItemTypeGenerator == null)
                base.ItemTypeGenerator = new RPMInfoItemTypeGenerator();
        }
Esempio n. 2
0
        protected override void ConfigureObjectCollector()
        {
            if (base.ObjectCollector == null)
            {
                var SSHExec = ((SSHConnectionProvider)ConnectionProvider).SSHExec;
                var newRPMInfoCollector = new RPMInfoCollector() { SSHExec = SSHExec };

                base.ObjectCollector =
                    new RPMInfoObjectCollector() { RPMInfosCollector = newRPMInfoCollector };
            }

            if (base.ItemTypeGenerator == null)
                base.ItemTypeGenerator = new RPMInfoItemTypeGenerator();
        }
 private IEnumerable<string> GetAllRpmInfoOnTarget()
 {
     if (this.RpmInfoCollector == null)
         this.RpmInfoCollector = new RPMInfoCollector() { CommandRunner = this.CommandRunner };
     
     return this.RpmInfoCollector.GetAllTargetRpmNames();
 }
Esempio n. 4
0
 private void CreateRPMInfosCollectorInstance()
 {
     if (this.RPMInfosCollector == null)
         this.RPMInfosCollector = new RPMInfoCollector();
 }