Sha256: 6b7344819ddd478e09c0fc03da3b298e5ebaeb01071fe54e52248e85863dcb76
Contents?: true
Size: 642 Bytes
Versions: 109
Compression:
Stored size: 642 Bytes
Contents
require "cf/cli/populators/base" require "cf/cli/populators/populator_methods" module CF module Populators class Space < Base attr_reader :organization include PopulatorMethods def initialize(input, organization) super(input) @organization = organization end private def valid?(space) return false unless space.guid space.developers.include? client.current_user rescue CFoundry::APIError false end def choices organization.spaces(:depth => 0) end def finder_argument organization end end end end
Version data entries
109 entries across 109 versions & 2 rubygems