vagrant-hosts icon indicating copy to clipboard operation
vagrant-hosts copied to clipboard

vagrant-hosts only works on Mac OS X

Open stepheneb opened this issue 14 years ago • 1 comments

It would be good to add to the readme that vagrant-hosts only works with Mac OS X right now.

While I use Mac OS X I am working with other developers that use Linux and Windows.

I was considering using vagrant-hosts but am concerned that it would fail with an error if run on Linux or Windows.

If and until vagrant-hosts works with other OS environments it would be good for it to print a warning and not fail on Linux and Windows.

if (RUBY_PLATFORM =~ /darwin/)
  implement_vagrant_hosts
else
  display_unsupported_os_warning
end

stepheneb avatar Aug 30 '11 15:08 stepheneb

Hi Stephen,

Am 30.08.2011 um 17:27 schrieb stepheneb:

It would be good to add to the readme that vagrant-hosts only works with Mac OS X right now.

Good tip!

While I use Mac OS X I am working with other developers that use Linux and Windows.

I was considering using vagrant-hosts but am concerned that it would fail with an error if run on Linux or Windows.

Very true.

If and until vagrant-hosts works with other OS environments it would be good for it to print a warning and not fail on Linux and Windows.

if (RUBY_PLATFORM =~ /darwin/) implement_vagrant_hosts else display_unsupported_os_warning end

I am still a bit new to ruby gem development, could you perhaps make this a patch and provide a pull request? I'd be more than happy to merge it.

Best Regards, Martin

dwt avatar Aug 31 '11 07:08 dwt