Method: Account#run
- Defined in:
- lib/cosmo/account.rb
#run(c) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/cosmo/account.rb', line 40 def run c s = " #{self}:".ljust(40) + "#{c} " unless Cosmo::Cosmo.dry? Net::SSH.start(self.machine, self.user) do |ssh| e = ssh_exec! ssh, c if e[2] == 0 puts s.green else puts s.red end end else puts s.blue end end |