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); }
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)); }
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; }
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); }