Class: SimpleDeployer::Command::Server

Inherits:
CommandsBase show all
Defined in:
lib/simple_deployer/commands/server.rb

Instance Method Summary collapse

Methods inherited from CommandsBase

#initialize

Constructor Details

This class inherits a constructor from SimpleDeployer::Command::CommandsBase

Instance Method Details

#mainObject



4
5
6
7
# File 'lib/simple_deployer/commands/server.rb', line 4

def main
    get_server
    p @service.server_status(@server_id)
end

#rebootObject



10
11
12
13
# File 'lib/simple_deployer/commands/server.rb', line 10

def reboot
    get_server
    p @service.reboot_server(@server_id)
end

#terminateObject



16
17
18
19
# File 'lib/simple_deployer/commands/server.rb', line 16

def terminate
    get_server
    p @service.terminate_server(@server_id)
end