Creating your own OpenWrap repository on a file-share

This content has moved to my new home page.

I’m feeling in a blogging mood. There are so many things that are cool in OpenWrap that you can expect quite a bit of content in the next few days.

One of the features we have in OpenWrap, and have had for a while, is using a simple file share as a remote repository.

From a command line, add a remote repository by providing a name and a path. I’ll do that a mythical server I’ll call cherenkov.

PS C:\src\demo> o add-remote corp file://cherenkov/c$/tmp/remoterepo/
# OpenWrap v1.0.0.0 ['C:\src\demo\wraps\_cache\openwrap-\bin-net35\OpenWrap.dll'] Remote repository 'corp' added.

Note that I could’ve created a local repository (one on my hard drive) by using file:///c:/tmp/remoterepo/ instead.

You can now publish packages. I’ll be cheeky and reuse a package I downloaded from NuPack that got converted automatically in the OpenWrap format, which I showed you how to do in one of my previous posts.

PS C:\src> o publish-wrap corp C:\users\sebastien.lambla\appdata\local\openwrap\wraps\Castle.Core-2.5.1.wrap
# OpenWrap v1.0.0.0 ['C:\Users\sebastien.lambla\AppData\Local\OpenWrap\wraps\_cache\openwrap-\bin-net35\OpenWrap.dll'] Publishing package 'Castle.Core-2.5.1.wrap' to 'corp'

And just to make sure, let’s go and see what is now in our remote package.

PS C:\src> o list-wrap -remote corp
# OpenWrap v1.0.0.0 ['C:\Users\sebastien.lambla\AppData\Local\OpenWrap\wraps\_cache\openwrap-\bin-net35\OpenWrap.dll'] - Castle.Core Versions: 2.5.1

Job done.

This entry was posted in Old, Uncategorized. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>