Sha256: 0cabea77d3b38d660c140d1dbc72365d26f4be58238891d23cbb55b822546953

Contents?: true

Size: 391 Bytes

Versions: 96

Compression:

Stored size: 391 Bytes

Contents

module Terraspace::Terraform
  class Api
    extend Memoist

    def initialize(mod, remote)
      @mod, @remote = mod, remote
    end

    def workspace
      Workspace.new(@mod, @remote['organization'], @remote['workspaces']['name'])
    end
    memoize :workspace

    def runs
      workspace_id = workspace.details['id']
      Runs.new(workspace_id)
    end
    memoize :runs
  end
end

Version data entries

96 entries across 96 versions & 1 rubygems

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