示例#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
        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
        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;
        }