Beispiel #1
0
 public static SessionCheckoutRequest ToSessionCheckoutRequest(this SessionVerb sessionVerb)
 {
     return(new SessionCheckoutRequest
     {
         BranchName = sessionVerb.BranchName,
         DockerComposeMetaData = new DockerComposeMetaData
         {
             ComposeFile = sessionVerb.DockerComposeFileName,
             Run = sessionVerb.DockerCompose
         }
     });
 }
Beispiel #2
0
 public static SessionStartRequest ToSessionStartRequest(this SessionVerb sessionVerb)
 {
     return(new SessionStartRequest
     {
         BranchName = sessionVerb.BranchName,
         Checkout = sessionVerb.Checkout,
         RepositoryGroupName = sessionVerb.GroupName,
         Slugs = sessionVerb.Slugs,
         DockerComposeMetaData = new DockerComposeMetaData
         {
             ComposeFile = sessionVerb.DockerComposeFileName,
             Run = sessionVerb.DockerCompose
         }
     });
 }