Class: Terraspace::Mod::Remote
- Inherits:
-
Terraspace::Mod
- Object
- Terraspace::Mod
- Terraspace::Mod::Remote
- Defined in:
- lib/terraspace/mod/remote.rb
Instance Attribute Summary
Attributes inherited from Terraspace::Mod
#consider_stacks, #instance, #name, #options, #resolved, #root_module
Instance Method Summary collapse
-
#initialize(meta, parent) ⇒ Remote
constructor
A new instance of Remote.
- #root ⇒ Object
- #type ⇒ Object
Methods inherited from Terraspace::Mod
#build_dir, #cache_dir, #check_exist!, #exist?, #expansion, #out_option, #placeholder, #possible_fake_root, #root_module?, #to_info, #type_dir
Methods included from Util::Pretty
Methods included from Util::Sure
Methods included from Util::Logging
Constructor Details
#initialize(meta, parent) ⇒ Remote
Returns a new instance of Remote.
3 4 5 6 7 8 |
# File 'lib/terraspace/mod/remote.rb', line 3 def initialize(, parent) # meta: from .terraform/modules/modules.json. Example structure: spec/fixtures/initialized/modules.json # parent: parent module or stack. IE: terraspace build MOD @meta, @parent = , parent @name = @meta['Key'] end |
Instance Method Details
#root ⇒ Object
10 11 12 |
# File 'lib/terraspace/mod/remote.rb', line 10 def root "#{@parent.cache_dir}/#{@meta['Dir']}" end |
#type ⇒ Object
14 15 16 |
# File 'lib/terraspace/mod/remote.rb', line 14 def type "module" end |