module VagrantPlugins::Bindler::LocalPluginsManifestExt

Constants

PLUGINS_JSON_LOOKUP

Public Instance Methods

bindler_plugins() click to toggle source
# File lib/bindler/local_plugins_manifest_ext.rb, line 18
def bindler_plugins
  @bindler_plugins ||= bindler_plugins_file ? JSON.parse(bindler_plugins_file.read) : {}
end
bindler_plugins_file() click to toggle source
# File lib/bindler/local_plugins_manifest_ext.rb, line 11
def bindler_plugins_file
  @bindler_plugins_file ||= PLUGINS_JSON_LOOKUP.map do |path|
    plugins = cwd.join(path)
    plugins if plugins.file?
  end.compact.first
end