Class: ApartmentAcmeClient::FileManipulation::Real
- Inherits:
-
Object
- Object
- ApartmentAcmeClient::FileManipulation::Real
- Defined in:
- lib/apartment_acme_client/file_manipulation/real.rb
Instance Method Summary collapse
Instance Method Details
#copy_file(from, to) ⇒ Object
6 7 8 |
# File 'lib/apartment_acme_client/file_manipulation/real.rb', line 6 def copy_file(from, to) run_command("sudo cp #{from} #{to}") end |
#restart_service(service) ⇒ Object
10 11 12 |
# File 'lib/apartment_acme_client/file_manipulation/real.rb', line 10 def restart_service(service) run_command("sudo service #{service} restart") end |