vaguerent/lib/vagrant/plugin_manager.rb
2014-01-04 16:29:22 -08:00

17 lines
304 B
Ruby

require "json"
require_relative "shared_helpers"
module Vagrant
class PluginManager
def self.global_plugins_file
Vagrant.user_data_path.join("plugins.json")
end
def self.plugins
plugins = JSON.parse(global_plugins_file.read)
plugins["installed"].keys
end
end
end