Sha256: 35cd500b2099a094a3b4434779fd352d511c3a3f8eb7e2ab07cf18c7f158e96f

Contents?: true

Size: 417 Bytes

Versions: 24

Compression:

Stored size: 417 Bytes

Contents

class Ufo::Apps
  class Cluster
    def self.all
      new.all
    end

    def all
      Ufo.check_ufo_project!
      clusters = if settings[:service_cluster]
        settings[:service_cluster].values
      elsif settings[:cluster]
        settings[:cluster]
      else
        Ufo.env
      end
      [clusters].flatten.compact
    end

  private
    def settings
      @settings ||= Ufo.settings
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ufo-5.0.7 lib/ufo/apps/cluster.rb
ufo-5.0.6 lib/ufo/apps/cluster.rb
ufo-5.0.5 lib/ufo/apps/cluster.rb
ufo-5.0.4 lib/ufo/apps/cluster.rb
ufo-5.0.3 lib/ufo/apps/cluster.rb
ufo-5.0.2 lib/ufo/apps/cluster.rb
ufo-5.0.1 lib/ufo/apps/cluster.rb
ufo-5.0.0 lib/ufo/apps/cluster.rb
ufo-4.6.3 lib/ufo/apps/cluster.rb
ufo-4.6.2 lib/ufo/apps/cluster.rb
ufo-4.6.1 lib/ufo/apps/cluster.rb
ufo-4.6.0 lib/ufo/apps/cluster.rb
ufo-4.5.11 lib/ufo/apps/cluster.rb
ufo-4.5.10 lib/ufo/apps/cluster.rb
ufo-4.5.9 lib/ufo/apps/cluster.rb
ufo-4.5.8 lib/ufo/apps/cluster.rb
ufo-4.5.7 lib/ufo/apps/cluster.rb
ufo-4.5.6 lib/ufo/apps/cluster.rb
ufo-4.5.5 lib/ufo/apps/cluster.rb
ufo-4.5.4 lib/ufo/apps/cluster.rb