Sha256: eaff002f3cd8b5f2fa92c9f334e55ae319b47514e3f42ab45a4848938da9d4f9

Contents?: true

Size: 449 Bytes

Versions: 101

Compression:

Stored size: 449 Bytes

Contents

class Terraspace::Mod
  class Remote < Terraspace::Mod
    def initialize(meta, 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  = meta, parent
      @name = @meta['Key']
    end

    def root
      "#{@parent.cache_dir}/#{@meta['Dir']}"
    end

    def type
      "module"
    end
  end
end

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/mod/remote.rb
terraspace-2.2.16 lib/terraspace/mod/remote.rb
terraspace-2.2.15 lib/terraspace/mod/remote.rb
terraspace-2.2.14 lib/terraspace/mod/remote.rb
terraspace-2.2.13 lib/terraspace/mod/remote.rb
terraspace-2.2.12 lib/terraspace/mod/remote.rb
terraspace-2.2.11 lib/terraspace/mod/remote.rb
terraspace-2.2.10 lib/terraspace/mod/remote.rb
terraspace-2.2.9 lib/terraspace/mod/remote.rb
terraspace-2.2.8 lib/terraspace/mod/remote.rb
terraspace-2.2.7 lib/terraspace/mod/remote.rb
terraspace-2.2.6 lib/terraspace/mod/remote.rb
terraspace-2.2.5 lib/terraspace/mod/remote.rb
terraspace-2.2.4 lib/terraspace/mod/remote.rb
terraspace-2.2.3 lib/terraspace/mod/remote.rb
terraspace-2.2.2 lib/terraspace/mod/remote.rb
terraspace-2.2.1 lib/terraspace/mod/remote.rb
terraspace-2.2.0 lib/terraspace/mod/remote.rb
terraspace-2.1.7 lib/terraspace/mod/remote.rb
terraspace-2.1.6 lib/terraspace/mod/remote.rb