vvchik / vagrant-serverspec

Vagrant plugin that integrates serverspec
MIT License
191 stars 28 forks source link

[feature] Support for `exclude-pattern` #44

Closed endemics closed 4 years ago

endemics commented 4 years ago

Hi,

I would like to be able to exclude patterns when running serverspec in Vagrant, as per rspec exclude-pattern.

I am already doing that in my Rakefile (for when I am running outside of Vagrant), but it is currently not supported by vagrant-serverspec:

    RSpec::Core::RakeTask.new(t.to_s) do |task|
      task.pattern = "spec/#{role}/*_spec.rb"
      task.exclude_pattern = "spec/#{role}/provider_*_spec.rb"
    end

Would you be open to support this feature? If so I can try and give a go at making a PR.

Cheers, Gildas

vvchik commented 4 years ago

Sure, go ahead!

vvchik commented 4 years ago

Hi, @endemics your PR merged, gem pushed. Closing.