debian-mirror-gitlab/app/models/clusters/concerns/application_data.rb

24 lines
377 B
Ruby
Raw Normal View History

2018-03-27 19:54:05 +05:30
module Clusters
module Concerns
module ApplicationData
extend ActiveSupport::Concern
included do
def repository
nil
end
def values
File.read(chart_values_file)
end
private
def chart_values_file
"#{Rails.root}/vendor/#{name}/values.yaml"
end
end
end
end
end