Class: UserProvidedServiceInstanceHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/cf/cli/service/service_instance_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(instance) ⇒ UserProvidedServiceInstanceHelper

Returns a new instance of UserProvidedServiceInstanceHelper.


8
9
10
# File 'lib/cf/cli/service/service_instance_helper.rb', line 8

def initialize(instance)
  @instance = instance
end

Instance Method Details

#matches(opts = {}) ⇒ Object


28
29
30
31
32
33
34
35
# File 'lib/cf/cli/service/service_instance_helper.rb', line 28

def matches(opts = {})
  label = opts[:service]
  if label
    return label == service_label
  end

  true
end

#nameObject


37
38
39
# File 'lib/cf/cli/service/service_instance_helper.rb', line 37

def name
  @instance.name
end

#plan_nameObject


24
25
26
# File 'lib/cf/cli/service/service_instance_helper.rb', line 24

def plan_name
  "n/a"
end

#service_bindingsObject


41
42
43
# File 'lib/cf/cli/service/service_instance_helper.rb', line 41

def service_bindings
  @instance.service_bindings
end

#service_labelObject


12
13
14
# File 'lib/cf/cli/service/service_instance_helper.rb', line 12

def service_label
  "user-provided"
end

#service_providerObject


16
17
18
# File 'lib/cf/cli/service/service_instance_helper.rb', line 16

def service_provider
  "n/a"
end

#versionObject


20
21
22
# File 'lib/cf/cli/service/service_instance_helper.rb', line 20

def version
  "n/a"
end