Skip to content

Commit

Permalink
Removes old path
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitor Mattos committed Jul 22, 2015
1 parent 9211eb9 commit 3383c99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions libs/version-map.js
Expand Up @@ -33,8 +33,7 @@
console.log('\nWARNING: VersionMap running in dry run mode. No changes will actually be made.\n');
}
this.registryPath = "registry/v2/registry.json";
this.tagsPath = "registry/1/tags.json";
this.newTagsPath = "tags/v2/tags.json";
this.tagsPath = "tags/v2/tags.json";
}

VersionMap.prototype.updateRegistry = function(registry, pkg) {
Expand Down Expand Up @@ -162,8 +161,7 @@


VersionMap.prototype.uploadTags = function(tags) {
utils.putObject(tags, this.s3Client, this.bucket, this.tagsPath, this.dryRun);
return utils.putObject(tags, this.s3Client, this.bucket, this.newTagsPath, this.dryRun);
return utils.putObject(tags, this.s3Client, this.bucket, this.tagsPath, this.dryRun);
};

/*
Expand Down
4 changes: 1 addition & 3 deletions src/version-map.coffee
Expand Up @@ -11,8 +11,7 @@ class VersionMap
@dryRun = options.dryRun
console.log '\nWARNING: VersionMap running in dry run mode. No changes will actually be made.\n' if @dryRun
@registryPath = "registry/v2/registry.json"
@tagsPath = "registry/1/tags.json"
@newTagsPath = "tags/v2/tags.json" #TODO replace tagsPath once Janus uses new version
@tagsPath = "tags/v2/tags.json"

# Updates the registry with the pkg package informations
# Package has two required properties: name and version
Expand Down Expand Up @@ -99,7 +98,6 @@ class VersionMap
###
uploadTags: (tags) =>
utils.putObject(tags, @s3Client, @bucket, @tagsPath, @dryRun)
utils.putObject(tags, @s3Client, @bucket, @newTagsPath, @dryRun) #TODO remove once Janus uses new version

###
Returns a tags object.
Expand Down

0 comments on commit 3383c99

Please sign in to comment.