Class: VpsbClient::Datafiles::Sadf
- Inherits:
-
Object
- Object
- VpsbClient::Datafiles::Sadf
- Defined in:
- lib/vpsb_client/datafiles/sar_manager.rb
Constant Summary collapse
- SADF =
'/usr/bin/sadf'
Class Method Summary collapse
Class Method Details
.run(src, dest) ⇒ Object
63 64 65 66 67 68 |
# File 'lib/vpsb_client/datafiles/sar_manager.rb', line 63 def self.run(src, dest) raise NotFoundError unless File.executable?(SADF) cmd = "#{SADF} -d #{src} -U > #{dest}" ret = system cmd raise VpsbClient::Datafiles::SarManager::SadfError, "\"#{cmd}\" failed" unless ret end |