Class: TestbotCloud::Servers
- Inherits:
-
Object
- Object
- TestbotCloud::Servers
- Defined in:
- lib/servers.rb
Class Method Summary collapse
Class Method Details
.known?(server) ⇒ Boolean
7 8 9 |
# File 'lib/servers.rb', line 7 def self.known?(server) File.exists? ".servers/#{server.id}" end |
.log_creation(server) ⇒ Object
3 4 5 |
# File 'lib/servers.rb', line 3 def self.log_creation(server) FileUtils.mkdir_p ".servers/#{server.id}" end |
.log_destruction(server) ⇒ Object
11 12 13 |
# File 'lib/servers.rb', line 11 def self.log_destruction(server) FileUtils.rm_rf ".servers/#{server.id}" end |