jonwagner / PSMock

A mocking library for PowerShell, including dynamic mocks, multiple context levels, and call tracking.
Other
15 stars 3 forks source link

Add to PowerShellGet repository #1

Open smaglio81 opened 10 years ago

smaglio81 commented 10 years ago

Hello Mr. Wagner,

We're you thinking about adding PSMock/PShould/PSate to the PowerShellGet repository?

jonwagner commented 10 years ago

It looks like it just installs nuget packages. I don't think it would be too hard to support that.

dfinke commented 10 years ago

Yeah, all you need is to create a psd1 (like a nuspec), then Publish-Module. You'll need PS v5.0 preview. PS v5 should be available for Windows 7 down the road.

jonwagner commented 10 years ago

Thanks, Doug. Do you have a link to the docs for Publish-Module? I wasn't able to find it. (I do have the april preview.)

dlwyatt commented 10 years ago

You might not be able to publish it just yet. Though the PSGet module was released for preview, I think the gallery that it's using as its backend is still invite-only. Microsoft pushed a few of their own bits, and asked MVPs to upload some modules as well a few days before TechEd.

Once the gallery is made public, the process is pretty simple. You register your Microsoft account to the gallery and it assigns you a NuGet API key. You pass that key to the Publish-Module command, and it takes care of the rest. (Assuming that you have all the necessary items defined in your module manifest; if not, the error messages are descriptive enough to tell you what's missing.)

jonwagner commented 10 years ago

I guess I'll wait for the official release...

dfinke commented 10 years ago

You'd need the May 2014 release. I didn't realize the MS repo was invite only though, Thanks Dave. You could set up a local Nuget repo or try MyGet for free.

smaglio81 commented 10 years ago

I didn't realize it was invite only either. Sorry about that.

If you want to play around with PowerShellGet on Windows 7; that can also be done: http://stevenmaglio.blogspot.com/2014/05/using-powershellget-on-win7.html

Thanks everyone for the amazing responses.

Steven Maglio SIS&T, Enterprise Team (805) 452-4058 steven.maglio@sa.ucsb.edu twitter: http://twitter.com/smaglio81 tech-blog: http://stevenmaglio.blogspot.com/

On May 27, 2014, at 12:59 PM, Doug Finke notifications@github.com wrote:

You'd need the May 2014 release. I didn't realize the repo was invite only though, Thanks Dave.

— Reply to this email directly or view it on GitHub.