Skip to content

Conversation

daviddias
Copy link
Member

No description provided.

@ghost ghost assigned daviddias Jan 6, 2018
@ghost ghost added the status/in-progress In progress label Jan 6, 2018
- `port` number - the port number to use for the remote factory. It should match the port on which `DaemonFactory.server` was started. Defaults to 9999.
- type - the daemon type to create with this factory. See the section bellow for the supported types
- `type` - the daemon type to create with this factory. See the section bellow for the supported types
- `exec` - path to the desired IPFS executable to spawn, otherwise `ipfsd-ctl` will try to locate the correct one based on the `type`. In the case of `proc` type, exec is required and expects an IPFS coderef.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dryajov seems that you never got to update the README based on the new reviewed API. I've updated it for you, please confirm that these options are correct.

README.md Outdated

> Delete the repo that was being used. If the node was marked as `disposable` this will be called automatically when the process is exited.

`callback` is a function with the signature `function (Error, Node)` where `err` is an Error in case something goes wrong and `Node` is a ???.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dryajov what is this Node that is returned with init?

@codecov
Copy link

codecov bot commented Jan 8, 2018

Codecov Report

Merging #181 into feat/remote-daemon will decrease coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@                  Coverage Diff                   @@
##           feat/remote-daemon     #181      +/-   ##
======================================================
- Coverage               89.87%   89.81%   -0.06%     
======================================================
  Files                      11       11              
  Lines                     553      550       -3     
======================================================
- Hits                      497      494       -3     
  Misses                     56       56
Impacted Files Coverage Δ
src/daemon-ctrl.js 90% <0%> (-0.7%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c60dece...0371dac. Read the comment docs.

@ghost ghost assigned dryajov Jan 8, 2018
Copy link
Member

@dryajov dryajov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @diasdavid! LGTM!

README.md Outdated

> Delete the repo that was being used. If the node was marked as `disposable` this will be called automatically when the process is exited.

`callback` is a function with the signature `function (Error, Node)` where `err` is an Error in case something goes wrong and `Node` is a ???.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It returns an ipfsd controller (ipfsd). I'll update this branch with the change.

@daviddias daviddias merged commit dbe6b37 into feat/remote-daemon Jan 9, 2018
@daviddias daviddias deleted the update-readme branch January 9, 2018 17:00
@ghost ghost removed the status/in-progress In progress label Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants