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-1.0.4 lib/terraspace/terraform/api.rb
terraspace-1.0.3 lib/terraspace/terraform/api.rb
terraspace-1.0.2 lib/terraspace/terraform/api.rb
terraspace-1.0.1 lib/terraspace/terraform/api.rb
terraspace-1.0.0 lib/terraspace/terraform/api.rb
terraspace-0.7.2 lib/terraspace/terraform/api.rb
terraspace-0.7.1 lib/terraspace/terraform/api.rb
terraspace-0.7.0 lib/terraspace/terraform/api.rb
terraspace-0.6.23 lib/terraspace/terraform/api.rb
terraspace-0.6.22 lib/terraspace/terraform/api.rb
terraspace-0.6.21 lib/terraspace/terraform/api.rb
terraspace-0.6.20 lib/terraspace/terraform/api.rb
terraspace-0.6.19 lib/terraspace/terraform/api.rb
terraspace-0.6.18 lib/terraspace/terraform/api.rb
terraspace-0.6.17 lib/terraspace/terraform/api.rb
terraspace-0.6.16 lib/terraspace/terraform/api.rb
terraspace-0.6.15 lib/terraspace/terraform/api.rb
terraspace-0.6.13 lib/terraspace/terraform/api.rb
terraspace-0.6.12 lib/terraspace/terraform/api.rb
terraspace-0.6.11 lib/terraspace/terraform/api.rb