From cd917ebc35a43b23170955f1c67ac1f2325cb83c Mon Sep 17 00:00:00 2001 From: bumi Date: Thu, 7 Jun 2018 15:22:39 +0200 Subject: [PATCH 1/2] Rename healthcheck to PreflightChecker Naming things is hard --- lib/kredits.js | 6 +++--- lib/utils/{healthcheck.js => preflight_checker.js} | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename lib/utils/{healthcheck.js => preflight_checker.js} (94%) diff --git a/lib/kredits.js b/lib/kredits.js index c3c5d5f..05d924b 100644 --- a/lib/kredits.js +++ b/lib/kredits.js @@ -1,7 +1,7 @@ const ethers = require('ethers'); const RSVP = require('rsvp'); -const Healthcheck = require('./utils/healthcheck'); +const PreflightChecker = require('./utils/preflight_checker'); const ABIS = { Contributors: require('./abis/Contributors.json'), @@ -97,8 +97,8 @@ class Kredits { return this.contracts[name]; } - healthcheck() { - return new Healthcheck(this).check(); + preflightChecks() { + return new PreflightChecker(this).check(); } } diff --git a/lib/utils/healthcheck.js b/lib/utils/preflight_checker.js similarity index 94% rename from lib/utils/healthcheck.js rename to lib/utils/preflight_checker.js index 8a76c58..5268446 100644 --- a/lib/utils/healthcheck.js +++ b/lib/utils/preflight_checker.js @@ -1,4 +1,4 @@ -class Healthcheck { +class PreflightChecker { constructor(kredits) { this.kredits = kredits; } @@ -25,4 +25,4 @@ class Healthcheck { } } -module.exports = Healthcheck; +module.exports = PreflightChecker; -- 2.25.1 From 5215b600210886401f97949e080d318b983e07e0 Mon Sep 17 00:00:00 2001 From: bumi Date: Thu, 7 Jun 2018 16:32:18 +0200 Subject: [PATCH 2/2] Naming is hard :D --- lib/kredits.js | 4 ++-- lib/utils/{preflight_checker.js => preflight.js} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename lib/utils/{preflight_checker.js => preflight.js} (94%) diff --git a/lib/kredits.js b/lib/kredits.js index 05d924b..9300179 100644 --- a/lib/kredits.js +++ b/lib/kredits.js @@ -1,7 +1,7 @@ const ethers = require('ethers'); const RSVP = require('rsvp'); -const PreflightChecker = require('./utils/preflight_checker'); +const Preflight = require('./utils/preflight'); const ABIS = { Contributors: require('./abis/Contributors.json'), @@ -98,7 +98,7 @@ class Kredits { } preflightChecks() { - return new PreflightChecker(this).check(); + return new Preflight(this).check(); } } diff --git a/lib/utils/preflight_checker.js b/lib/utils/preflight.js similarity index 94% rename from lib/utils/preflight_checker.js rename to lib/utils/preflight.js index 5268446..aef3b64 100644 --- a/lib/utils/preflight_checker.js +++ b/lib/utils/preflight.js @@ -1,4 +1,4 @@ -class PreflightChecker { +class Preflight { constructor(kredits) { this.kredits = kredits; } @@ -25,4 +25,4 @@ class PreflightChecker { } } -module.exports = PreflightChecker; +module.exports = Preflight; -- 2.25.1