Sha256: 067b1f65d3e61cb267faa04e45c377b8ffb5e03c1dadbf0a13bd7b8b04e8a870
Contents?: true
Size: 756 Bytes
Versions: 25
Compression:
Stored size: 756 Bytes
Contents
module Terraspace module Booter def boot Terraspace::Bundle.require # load plugins load_plugin_default_configs Terraspace.config # load project config Terraspace::App::Hooks.run_hook(:on_boot) set_plugin_cache! end def load_plugin_default_configs Terraspace::Plugin.config_classes.each do |klass| # IE: TerraspacePluginAws::Interfaces::Config.instance.load_project_config klass.instance.load_project_config end end def set_plugin_cache! plugin_cache = Terraspace.config.terraform.plugin_cache return unless plugin_cache.enabled dir = ENV['TF_PLUGIN_CACHE_DIR'] ||= plugin_cache.dir FileUtils.mkdir_p(dir) dir end extend self end end
Version data entries
25 entries across 25 versions & 1 rubygems