17 lines
304 B
Ruby
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
|