On 17 August 2017 at 07:12, Peter Faller <[email protected]> wrote:

> While trying to use the PDK on Windows (instead of using a Linux VM for
> development), I've come across a few hitches:
>
> 1) 'rake' is not available as a command (it is accessible via
> $env:DEVKIT_BASEDIR/private/private\ruby\2.1.9\bin\rake though)
> 2) 'rspec' is not available as a command
> 3) errors related to file paths (seems to be an old Windows-related
> issue): Parameter path failed on File[/tftpboot]: File paths must be fully
> qualified, not '/tftpboot' at line 4
>
> Are there any workarounds for these?
>

The first two are easily addressed by running the commands through `pdk
bundle`. This ensures that you are using the PDK's ruby, and execution
environment. Generally the `pdk bundle` command should support running any
command that you have available through your Gemfile. for example `pdk
bundle exec "rake -T"`. See
https://github.com/puppetlabs/pdk#pdk-bundle-command (or the built-in help)
for details.

Would you mind sharing (even if privately) your use cases, where `pdk test
unit` is not providing enough functionality for you?

Number 3) has been fixed in rspec-puppet 2.6.0. If you are running an
earlier version, please update! If you are running rspec-puppet 2.6, or
newer, would you mind sending in a repro case directly on the rspec-puppet
github repo, so that we can have a poke at it?


> (BTW: Initially I had a standard Ruby 2.1 install in my PATH - that caused
> a lot of trouble too.)
>

This is surprising to me. We took great care that the pdk command is
independent of  existing ruby installations. Can you send me the commands
you were running, and how they failed on you, as well as how you installed
the PDK, and which versions of Windows, and PowerShell you were running?


Thank you for your feedback!


Cheers, David

>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/puppet-users/238147f7-36e6-4a8f-998e-4f2570e68c91%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/238147f7-36e6-4a8f-998e-4f2570e68c91%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CALF7fHa1MENDQS%3DmHYb9u757%3DCjGg%3DgyVvb6_PQvxvttAwavHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to