Sha256: 70471a7bf5538828c1d70f16e2a25fb1dee0e18168d56121722be762f145f0e0
Contents?: true
Size: 598 Bytes
Versions: 8
Compression:
Stored size: 598 Bytes
Contents
class Terraspace::Seeder class Where def initialize(mod, options={}) @mod, @options = mod, options end def dest_path case @options[:where] when "app" app_path when "seed" seed_path else infer_dest_path end end def infer_dest_path @mod.type == "stack" ? app_path : seed_path end def app_path "#{Terraspace.root}/app/#{@mod.build_dir}/tfvars/#{Terraspace.env}.tfvars" end def seed_path "#{Terraspace.root}/seed/tfvars/#{@mod.build_dir}/#{Terraspace.env}.tfvars" end end end
Version data entries
8 entries across 8 versions & 1 rubygems