Class: Server

Inherits:
ActiveRecord::Base show all
Defined in:
lib/six-updater-web/app/models/server.rb

Instance Method Summary collapse

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

#exec3Object



14
15
16
# File 'lib/six-updater-web/app/models/server.rb', line 14

def exec3
  ""
end

#remaObject



10
11
12
# File 'lib/six-updater-web/app/models/server.rb', line 10

def rema
  "servers/show"
end

#remoteObject



7
8
# File 'lib/six-updater-web/app/models/server.rb', line 7

def remote
end

#to_updater_ymlObject



18
19
20
21
22
23
24
# File 'lib/six-updater-web/app/models/server.rb', line 18

def to_updater_yml
  hash = Hash.new
  attribute_names.each do |at|
    hash[at.to_sym] = eval(at)
  end
  hash
end