Sha256: 6e509d096703aa53fce436e2f039660dcd4cd4c36e60ce754eb664606bef12a9
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
# require all commands Dir.glob(File.dirname(File.absolute_path(__FILE__)) + '/cloud66_agent/commands/*', &method(:require)) class Cloud66Agent def self.configure(server_uid) raise ArgumentError.new if server_uid.nil? Cloud66::Commands::Configure.perform(server_uid) end def self.pulse Cloud66::Commands::Pulse.perform end def self.vitals Cloud66::Commands::Vitals.perform end def self.address Cloud66::Commands::Address.perform end def self.job_start(job_uid) raise ArgumentError.new if job_uid.nil? Cloud66::Commands::JobStart.perform(job_uid) end def self.job_end(job_uid, run_uid, run_status, run_time, results_file) raise ArgumentError.new if run_status.nil? || job_uid.nil? || run_uid.nil? || run_time.nil? || results_file.nil? Cloud66::Commands::JobEnd.perform(job_uid, run_uid, run_status, run_time, results_file) end def self.fail2ban(is_banned, ip_address) raise ArgumentError.new if is_banned.nil? || ip_address.nil? Cloud66::Commands::Fail2ban.perform(is_banned, ip_address) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cloud66_agent-1.0.1 | lib/cloud66_agent.rb |
cloud66_agent-1.0.0 | lib/cloud66_agent.rb |