Exemplo n.º 1
0
 public Launcher(Server server, StartTask task)
 {
     Task              = task;
     Task.SourcePath   = SourcePath?.TrimEnd('/', '\\');
     Server.RemotePath = RemotePath?.TrimEnd('/', '\\');
     Server            = server;
 }
Exemplo n.º 2
0
        public void Launcher(StartTask app)
        {
            switch (Type)
            {
            case ServerTypes.LocalMono: return(new LocalLauncher(this, app));

            case ServerTypes.RemoteSsh: return(new RemoteSshLauncher(this, app));

            case ServerTypes.WSLBash: return(new LocalBashLauncher(this, app));

            case ServerTypes.Cygwin: return(new LocalCygwinLauncher(this, app));
            }
        }
Exemplo n.º 3
0
        public static Launcher New(Server server, StartTask app)
        {
            switch (server.Type)
            {
            case ServerTypes.LocalMono: return(new LocalLauncher(server, app));

            case ServerTypes.RemoteSsh: return(new RemoteSshLauncher(server, app));

            case ServerTypes.WSLBash: return(new LocalBashLauncher(server, app));

            case ServerTypes.Cygwin: return(new LocalCygwinLauncher(server, app));

            default: throw new NotSupportedException();
            }
        }
Exemplo n.º 4
0
 public LocalHost(Server server, StartTask task) : base(server, task)
 {
     OutputPath = task.SourcePath.TrimEnd('/', '\\');
 }
Exemplo n.º 5
0
 public static void Start(Server server, StartTask app) => New(server, app).Launch();
Exemplo n.º 6
0
 public void Start(StartTask app)
 {
     Launcher(app).Launch();
 }
Exemplo n.º 7
0
 public LocalBashLauncher(Server server, StartTask task) : base(server, task)
 {
 }
Exemplo n.º 8
0
 public Host(Launcher launcher)
 {
     Server = launcher.Server; Task = launcher.Task;
 }
Exemplo n.º 9
0
 public LocalCygwinHost(Server server, StartTask task) : base(server, task)
 {
 }
Exemplo n.º 10
0
 public RemoteSshLauncher(Server server, StartTask task) : base(server, task)
 {
 }
Exemplo n.º 11
0
 public LocalCygwinLauncher(Server server, StartTask task) : base(server, task)
 {
 }