Sha256: d0189888ae36e730487ce4756704ee31b809b48c7ea03fa562103986539b28a8

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

# frozen_string_literal: true

# These are 'Environments' in the UI
module Rancher
  module Api
    class Project
      include Her::Model
      include Helpers::Model

      has_many :machines
      has_many :hosts
      has_many :environments
      has_many :services

      class << self
        def find_by_name(name:)
          # filters not working for name yet, so using select
          all.reject { |e| e.state.eql?('purged') }.select { |e| e.name.eql?(name) }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rancher-api-beta-0.8.0.pre.beta lib/rancher/api/models/project.rb