@toa.io/boot 0.2.0-dev.2 → 0.2.0-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/boot",
3
- "version": "0.2.0-dev.2",
3
+ "version": "0.2.0-dev.3+8334154",
4
4
  "description": "Toa Boot",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -20,11 +20,11 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@toa.io/bindings.loop": "0.2.0-dev.0",
23
- "@toa.io/core": "0.2.0-dev.2",
24
- "@toa.io/operations": "0.2.0-dev.2",
25
- "@toa.io/package": "0.2.0-dev.2",
26
- "@toa.io/schema": "0.2.0-dev.2",
23
+ "@toa.io/core": "0.2.0-dev.3+8334154",
24
+ "@toa.io/operations": "0.2.0-dev.3+8334154",
25
+ "@toa.io/package": "0.2.0-dev.3+8334154",
26
+ "@toa.io/schema": "0.2.0-dev.3+8334154",
27
27
  "clone-deep": "4.0.1"
28
28
  },
29
- "gitHead": "83480176c88640dd2bed2a775ce2d13b95341f19"
29
+ "gitHead": "8334154c1b8a8268ad90adfb15b43a876459014f"
30
30
  }
package/src/deployment.js CHANGED
@@ -1,12 +1,13 @@
1
1
  'use strict'
2
2
 
3
- const { Deployment } = require('@toa.io/operations')
3
+ const { deployment: { Factory } } = require('@toa.io/operations')
4
4
  const { context: load } = require('@toa.io/package')
5
5
 
6
6
  const deployment = async (path) => {
7
7
  const context = await load(path)
8
+ const factory = new Factory(context)
8
9
 
9
- return new Deployment(context)
10
+ return factory.deployment()
10
11
  }
11
12
 
12
13
  exports.deployment = deployment