Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Created August 27, 2013 15:20
Show Gist options
  • Save jtimberman/6354989 to your computer and use it in GitHub Desktop.
Save jtimberman/6354989 to your computer and use it in GitHub Desktop.
execute "vagrant-berkshelf plugin" do
command "vagrant plugin install vagrant-berkshelf --plugin-version 1.2.0"
user jenkins_data['user']
environment({'HOME' => jenkins_data[:home]})
not_if do
if ::File.exists?(::File.join(jenkins_vagrant, "plugins.json"))
plugins = JSON.parse(
IO.read(::File.join(jenkins_vagrant, "plugins.json"))
)
plugins['installed'].include?('vagrant-berkshelf')
else
false
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment