Ejemplo n.º 1
0
        private Bundle PushBundleForSubdirectory(ApplicationSetRevision applicationSetRevision, DirectoryInfo subdirectory, string bucket)
        {
            var bundle = new Bundle(
                applicationSetRevision.ApplicationSetName,
                subdirectory,
                applicationSetRevision.Version,
                bucket,
                null,
                applicationSetRevision.StackName);

            bundle.Push(_s3Client, _codeDeployClient);

            return(bundle);
        }
Ejemplo n.º 2
0
        public Release PushRevision(ApplicationSetRevision applicationSetRevision)
        {
            var subdirectories = Directory
                                 .GetDirectories(applicationSetRevision.LocalDirectory)
                                 .Select(sd => new DirectoryInfo(sd));

            var bundles = subdirectories
                          .Select(subdirectory =>
                                  PushBundleForSubdirectory(applicationSetRevision, subdirectory, _bucket)).ToArray();

            return(new Release(
                       applicationSetRevision.ApplicationSetName,
                       applicationSetRevision.Version,
                       bundles));
        }
Ejemplo n.º 3
0
        private Bundle PushBundleForSubdirectory(ApplicationSetRevision applicationSetRevision, DirectoryInfo subdirectory, string bucket)
        {
            var bundle = new Bundle(
                applicationSetRevision.ApplicationSetName,
                subdirectory,
                applicationSetRevision.Version,
                bucket,
                null,
                applicationSetRevision.StackName);

            bundle.Push(_s3Client, _codeDeployClient);

            return bundle;
        }
Ejemplo n.º 4
0
        public Release PushRevision(ApplicationSetRevision applicationSetRevision)
        {
            var subdirectories = Directory
                .GetDirectories(applicationSetRevision.LocalDirectory)
                .Select(sd => new DirectoryInfo(sd));

            var bundles = subdirectories
                .Select(subdirectory =>
                    PushBundleForSubdirectory(applicationSetRevision, subdirectory, _bucket)).ToArray();

            return new Release(
                applicationSetRevision.ApplicationSetName,
                applicationSetRevision.Version,
                bundles);
        }