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-0.5.3 lib/terraspace/mod/remote.rb
terraspace-0.5.2 lib/terraspace/mod/remote.rb
terraspace-0.5.1 lib/terraspace/mod/remote.rb
terraspace-0.5.0 lib/terraspace/mod/remote.rb
terraspace-0.4.4 lib/terraspace/mod/remote.rb
terraspace-0.4.3 lib/terraspace/mod/remote.rb
terraspace-0.4.2 lib/terraspace/mod/remote.rb
terraspace-0.4.1 lib/terraspace/mod/remote.rb
terraspace-0.4.0 lib/terraspace/mod/remote.rb
terraspace-0.3.6 lib/terraspace/mod/remote.rb
terraspace-0.3.5 lib/terraspace/mod/remote.rb
terraspace-0.3.4 lib/terraspace/mod/remote.rb
terraspace-0.3.3 lib/terraspace/mod/remote.rb
terraspace-0.3.2 lib/terraspace/mod/remote.rb
terraspace-0.3.1 lib/terraspace/mod/remote.rb
terraspace-0.3.0 lib/terraspace/mod/remote.rb
terraspace-0.2.4 lib/terraspace/mod/remote.rb
terraspace-0.2.3 lib/terraspace/mod/remote.rb
terraspace-0.2.2 lib/terraspace/mod/remote.rb
terraspace-0.2.1 lib/terraspace/mod/remote.rb