Sha256: 2964ff4cda4c0e1382984da060ee1845665687a3a896109b5f8ca4dc85462392
Contents?: true
Size: 522 Bytes
Versions: 3
Compression:
Stored size: 522 Bytes
Contents
class Terraspace::Seeder class Where def initialize(mod, options={}) @mod, @options = mod, options end def dest_path if @options[:where] == "app" seed_path("app") else seed_path("config") end end def seed_path(folder) "#{Terraspace.root}/#{folder}/#{@mod.build_dir(disable_extra: true)}/tfvars/#{seed_file}.tfvars" end def seed_file [Terraspace.app, Terraspace.role, Terraspace.env, Terraspace.extra].compact.join("/") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
terraspace-2.2.17 | lib/terraspace/seeder/where.rb |
terraspace-2.2.16 | lib/terraspace/seeder/where.rb |
terraspace-2.2.15 | lib/terraspace/seeder/where.rb |