Class: Appsetting
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Appsetting
- Includes:
- Six::Appmanager::Appsetting
- Defined in:
- lib/six-updater-web/app/models/appsetting.rb
Instance Method Summary collapse
Methods included from Six::Appmanager::Appsetting
#kill!, #logfile, #path_by_registry, #process_name, #processes, #read_logfile, #real_exe, #real_logpath, #real_modpath, #real_params, #real_path, #rpt
Methods inherited from ActiveRecord::Base
#associated_valid?, #no_errors_in_associated?, #save_associated, #save_associated!, #save_with_unsaved_flag, #to_label, #unsaved=, #unsaved?
Instance Method Details
#to_updater_yml ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/six-updater-web/app/models/appsetting.rb', line 8 def to_updater_yml hash = Hash.new attribute_names.each do |at| i = at.to_s i = "app_#{i}" value = eval(at) hash[i.to_sym] = value unless value.nil? || value.to_s.size == 0 end hash end |