Sha256: e4c297b218cc99fc29a19a46a118d3b8d8efeb2144660d9170f0c411f66f5965
Contents?: true
Size: 457 Bytes
Versions: 3
Compression:
Stored size: 457 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 :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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rancher-api-0.5.2 | lib/rancher/api/models/project.rb |
rancher-api-0.5.1 | lib/rancher/api/models/project.rb |
rancher-api-0.5.0 | lib/rancher/api/models/project.rb |