Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat) Add vagrant-bolt as a gem dependency #59

Merged
merged 1 commit into from
Sep 5, 2019
Merged

(feat) Add vagrant-bolt as a gem dependency #59

merged 1 commit into from
Sep 5, 2019

Conversation

jarretlavallee
Copy link

@jarretlavallee jarretlavallee commented Aug 21, 2019

This commit adds a new dependency to this module: vagrant-bolt. This
new dependency will install the vagrant-bolt plugin and load it if
the vagrant version is higher than 2.2.

@jarretlavallee
Copy link
Author

I tested this with vagrant 1.8.7. The result is that it does not break the configuration as the plugin does not get loaded.

lib/oscar.rb Outdated
@@ -3,6 +3,7 @@ module Oscar
require 'vagrant-pe_build'
require 'vagrant-auto_network'
require 'vagrant-config_builder'
require 'vagrant-bolt' unless Vagrant::VERSION < "2.2.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

String comparison can be a bit tricksy for version numbers. I'd use the following:

require 'rubygems/requirement'
Gem::Requirement.new('>= 2.2.0').satisfied_by?(Gem::Version.new(Vagrant::VERSION))

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good to know. Thanks for the code. I pushed an update with this comparison.

This commit adds a new dependency to this module: vagrant-bolt. This
new dependency will install the `vagrant-bolt` plugin and load it if
the vagrant version is higer than 2.2.
Copy link
Member

@Sharpie Sharpie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@Sharpie Sharpie merged commit 9c8850f into oscar-stack:master Sep 5, 2019
@Sharpie
Copy link
Member

Sharpie commented Sep 6, 2019

Shipped Oscar 0.6.0, which includes this dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants