Sha256: 2bc0f6413f3865c88a28df01964de09c070786fd7bf07482094475f84cb61734

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

# frozen_string_literal: true

module Rancher
  module Api
    module Helpers
      module Project
        def self.included(base)
          base.extend(ClassMethods)
        end

        module ClassMethods
          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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rancher-api-beta-0.8.1 lib/rancher/api/helpers/project.rb