Skip to content

Commit

Permalink
Merge branch 'master' of github.com:firebase/firebase-tools into laun…
Browse files Browse the repository at this point in the history
…ch.multisite
  • Loading branch information
mbleigh committed Aug 20, 2018
2 parents c47b1d2 + 30ff32a commit 83df772
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 42 deletions.
1 change: 0 additions & 1 deletion changelog.txt
@@ -1 +0,0 @@
fixed - Cached Hosting file hashes should be located at the project root.
6 changes: 3 additions & 3 deletions commands/deploy.js
@@ -1,6 +1,6 @@
"use strict";

var acquireRefs = require("../lib/acquireRefs");
var requireAccess = require("../lib/requireAccess");
var clc = require("cli-color");
var checkDupHostingKeys = require("../lib/checkDupHostingKeys");
var checkValidTargetFilters = require("../lib/checkValidTargetFilters");
Expand Down Expand Up @@ -30,7 +30,7 @@ module.exports = new Command("deploy")
.option("--except <targets>", 'deploy to all targets except specified (e.g. "database")')
.before(requireConfig)
.before(function(options) {
return acquireRefs(options, [scopes.CLOUD_PLATFORM]).catch(function(err) {
return requireAccess(options, [scopes.CLOUD_PLATFORM]).catch(function(err) {
if (options.config.has("functions")) {
throw err;
}
Expand All @@ -42,7 +42,7 @@ module.exports = new Command("deploy")
utils.logWarning(clc.bold("Please run " + clc.underline("firebase login --reauth")));
logger.info();

return acquireRefs(options, []);
return requireAccess(options, []);
});
})
.before(checkDupHostingKeys)
Expand Down
32 changes: 0 additions & 32 deletions lib/acquireRefs.js

This file was deleted.

5 changes: 0 additions & 5 deletions lib/requireAccess.js
Expand Up @@ -3,7 +3,6 @@
var _ = require("lodash");
var clc = require("cli-color");

var api = require("./api");
var getInstanceId = require("./getInstanceId");
var getProjectId = require("./getProjectId");
var FirebaseError = require("./error");
Expand All @@ -24,10 +23,6 @@ module.exports = function(options, authScopes) {
})
.then(function(instance) {
options.instance = instance;
return api.request("GET", "/v1/database/" + options.instance + "/tokens", { auth: true });
})
.then(function(res) {
options.metadataToken = res.body.metadata;
return;
})
.catch(function(err) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "firebase-tools",
"version": "4.1.1",
"version": "4.1.2",
"description": "Command-Line Interface for Firebase",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit 83df772

Please sign in to comment.