Skip to content

Commit

Permalink
[INTERNAL] resourceFactory: Add createReader API
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed Apr 22, 2022
1 parent 9fe0e06 commit dff7195
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/resourceFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ const resourceFactory = {
}
},

createReader({fsBasePath, virBasePath, name}) {
return new ReaderCollection({
name,
readers: [resourceFactory.createAdapter({fsBasePath, virBasePath})]
});
},

/**
* Creates a <code>Resource</code>. Accepts the same parameters as the Resource constructor.
Expand Down

0 comments on commit dff7195

Please sign in to comment.