Sha256: b72c1c4aef68ac5f6fcdbce0c3450f37ab06b4ac1b09e10636f444be7e97d9b0
Contents?: true
Size: 479 Bytes
Versions: 2
Compression:
Stored size: 479 Bytes
Contents
# 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rancher-api-0.7.0 | lib/rancher/api/models/project.rb |
rancher-api-0.6.0 | lib/rancher/api/models/project.rb |