class Pec::Command::Base

Public Class Methods

after_do() click to toggle source
# File lib/pec/command/base.rb, line 21
def self.after_do; end
before_do() click to toggle source
# File lib/pec/command/base.rb, line 20
def self.before_do; end
not_fetch() click to toggle source
# File lib/pec/command/base.rb, line 18
def self.not_fetch; end
print_exception(e) click to toggle source
run(filter_hosts) click to toggle source
# File lib/pec/command/base.rb, line 3
def self.run(filter_hosts)
  before_do
  Pec.servers(filter_hosts, not_fetch) do |server,config|
    task(server, config)
  end
  after_do
  rescue => e
    print_exception(e)
end
task(server, config) click to toggle source
# File lib/pec/command/base.rb, line 19
def self.task(server, config); end