Class: Pec::Command::Base
- Inherits:
-
Object
- Object
- Pec::Command::Base
show all
- Defined in:
- lib/pec/command/base.rb
Class Method Summary
collapse
Class Method Details
.print_exception(e) ⇒ Object
11
12
13
14
|
# File 'lib/pec/command/base.rb', line 11
def self.print_exception(e)
Pec::Logger.critical(e)
Pec::Logger.info("\t" + e.backtrace.join("\n\t"))
end
|
.run(host_name, options) ⇒ Object
3
4
5
6
7
8
9
|
# File 'lib/pec/command/base.rb', line 3
def self.run(host_name, options)
Pec.servers(host_name) do |server,config|
task(host_name, options, server, config)
end
rescue => e
print_exception(e)
end
|
.task(host_name, options, server, config) ⇒ Object
16
|
# File 'lib/pec/command/base.rb', line 16
def self.task(host_name, options, server, config); end
|