Class: ReplaceHost
- Inherits:
-
Object
- Object
- ReplaceHost
- Defined in:
- lib/replace_host.rb
Class Method Summary collapse
Class Method Details
.process ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/replace_host.rb', line 2 def self.process system "sed -i 's/192.168.99.100/localhost/g' config/settings.yml" system "echo", "-e", "\e[92mYour replace successful!" rescue Exception => e system "echo", "-e", "\e[91m#{e.}" system "echo", "-e", "\e[91mMake sure you're in the right place!" end |