Method: Controlplane#profile_exists?

Defined in:
lib/core/controlplane.rb

#profile_exists?(profile) ⇒ Boolean

Returns:

  • (Boolean)


24
25
26
27
# File 'lib/core/controlplane.rb', line 24

def profile_exists?(profile)
  cmd = "cpln profile get #{profile} -o yaml"
  perform_yaml!(cmd).length.positive?
end