Class: Vermillion::Controller::Update

Inherits:
Base
  • Object
show all
Includes:
Helper::ApiCommunication
Defined in:
lib/client/controller/update.rb

Constant Summary

Constants inherited from Base

Base::OK, Base::QUIT, Base::QUIT_SOFT

Instance Attribute Summary

Attributes inherited from Base

#request

Instance Method Summary collapse

Methods included from Helper::ApiCommunication

#send_to_all, #send_to_one

Methods inherited from Base

#can_exec?, #exec, #initialize, #post_exec, #pre_exec, #sample

Constructor Details

This class inherits a constructor from Vermillion::Controller::Base

Instance Method Details

#allObject

Update all sites in the manifest



7
8
9
# File 'lib/client/controller/update.rb', line 7

def all
  send_to_all(:update)
end

#config(server) ⇒ Object

Update the configuration manifest for one server Params:

server

Symbol representing the server you want to update



21
22
23
# File 'lib/client/controller/update.rb', line 21

def config(server)
  send_to_one(server, :update_config)
end

#one(server) ⇒ Object

Update just one server Params:

server

Symbol representing the server you want to update



14
15
16
# File 'lib/client/controller/update.rb', line 14

def one(server)
  send_to_one(server, :update)
end