Class: SimpleDeployer::Command::Projects

Inherits:
CommandsBase show all
Defined in:
lib/simple_deployer/commands/projects.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



5
6
7
8
9
10
# File 'lib/simple_deployer/commands/projects.rb', line 5

def main
    projects = @service.projects_list()
    projects.each do |pr|
        p "Name:" + pr["name"] + "; id:" + pr["id"] + "; active servers:"+pr["num_servers"].to_s
    end
end