Sha256: 26e14bc14a8911e6a0b54bfe1e599f74a72816d5808385214c40904622dfb15b
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
module TerraspaceBundler class Installer < CLI::Base def run Syncer.new(@options).run Exporter.new(@options).run finish_message end def finish_message no_modules_found = true export_paths.each do |export_path| found = Dir.exist?(export_path) && !Dir.empty?(export_path) next unless found logger.info "Modules saved to #{export_path}" no_modules_found = false end logger.info("No modules were found.") if no_modules_found end def export_paths export_paths = Terrafile.instance.mods.map(&:export_to).compact.uniq export_paths << TB.config.export_path export_paths end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
terraspace-bundler-0.2.0 | lib/terraspace_bundler/installer.rb |