예제 #1
0
파일: ZAwsEc2.cs 프로젝트: kueiwa/ZAws
 internal Application(ZAwsEc2 server, string name, string url, string repo, string reponame, ApplicationType type)
 {
     Server   = server;
     Name     = name;
     URL      = url;
     Repo     = repo;
     RepoName = reponame;
     AppType  = type;
 }
예제 #2
0
파일: ZAwsTasks.cs 프로젝트: kueiwa/ZAws
        public ZAwsTaskAssociateNewIpToEc2(ZAwsEc2 ec2)
            : base(ec2.myController, "Application will be installed.")
        {
            Ec2 = ec2;

            StartMessage     = "Associating new IP with EC2 " + ec2.Name;
            SuccessMessage   = "Succefully associated new IP with EC2 " + ec2.Name;
            ExceptionMessage = "Error associating IP, reason: {0}";

            DelayBeforeTaskStart = 1;
        }
예제 #3
0
파일: ZAwsTasks.cs 프로젝트: kueiwa/ZAws
        public ZAwsTaskPointARecordToEc2(ZAwsEc2 ec2, string url)
            : base(ec2.myController, "Application will be installed.")
        {
            Ec2 = ec2;
            Url = url;

            StartMessage     = "Creating new A record for " + Url;
            SuccessMessage   = "Succefully created A record.";
            ExceptionMessage = "Error creating A record, reason: {0}";

            DelayBeforeTaskStart = 1;
        }
예제 #4
0
 internal void Associate(ZAwsEc2 ec2)
 {
     Amazon.EC2.Model.AssociateAddressResponse resp = myController.ec2.AssociateAddress(new AssociateAddressRequest()
                                         .WithPublicIp(this.Name)
                                         .WithInstanceId(ec2.InstanceId));
 }
예제 #5
0
파일: ZAwsEc2.cs 프로젝트: zmilojko/ZAws
 internal Application(ZAwsEc2 server, string name, string url, string repo, string reponame, ApplicationType type)
 {
     Server = server;
     Name = name;
     URL = url;
     Repo = repo;
     RepoName = reponame;
     AppType = type;
 }
예제 #6
0
 internal void Associate(ZAwsEc2 ec2)
 {
     Amazon.EC2.Model.AssociateAddressResponse resp = myController.ec2.AssociateAddress(new AssociateAddressRequest()
                                                                                        .WithPublicIp(this.Name)
                                                                                        .WithInstanceId(ec2.InstanceId));
 }
예제 #7
0
파일: ZAwsTasks.cs 프로젝트: zmilojko/ZAws
        public ZAwsTaskAssociateNewIpToEc2(ZAwsEc2 ec2)
            : base(ec2.myController, "Application will be installed.")
        {
            Ec2 = ec2;

            StartMessage = "Associating new IP with EC2 " + ec2.Name;
            SuccessMessage = "Succefully associated new IP with EC2 " + ec2.Name;
            ExceptionMessage = "Error associating IP, reason: {0}";

            DelayBeforeTaskStart = 1;
        }
예제 #8
0
파일: ZAwsTasks.cs 프로젝트: zmilojko/ZAws
        public ZAwsTaskPointARecordToEc2(ZAwsEc2 ec2, string url)
            : base(ec2.myController, "Application will be installed.")
        {
            Ec2 = ec2;
            Url = url;

            StartMessage = "Creating new A record for " + Url;
            SuccessMessage = "Succefully created A record.";
            ExceptionMessage = "Error creating A record, reason: {0}";

            DelayBeforeTaskStart = 1;
        }