File tree Expand file tree Collapse file tree 4 files changed +47
-0
lines changed
Expand file tree Collapse file tree 4 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ """List virtual servers."""
2+ # :license: MIT, see LICENSE for more details.
3+
4+ import click
5+
6+ import SoftLayer
7+ from SoftLayer .CLI import columns as column_helper
8+ from SoftLayer .CLI import environment
9+ from SoftLayer .CLI import formatting
10+ from SoftLayer .CLI import helpers
11+ from SoftLayer .managers .autoscale import AutoScaleManager
12+
13+
14+ @click .command ()
15+ @environment .pass_env
16+ def cli (env ):
17+ """List AutoScale Groups."""
18+
19+ autoscale = AutoScaleManager (env .client )
20+ groups = autoscale .list ()
21+ print (groups )
22+ # table = formatting.Table()
23+
24+
25+ # env.fout(table)
Original file line number Diff line number Diff line change 302302
303303 ('report' , 'SoftLayer.CLI.report' ),
304304 ('report:bandwidth' , 'SoftLayer.CLI.report.bandwidth:cli' ),
305+
306+ ('autoscale' , 'SoftLayer.CLI.autoscale' ),
307+ ('autoscale:list' , 'SoftLayer.CLI.autoscale.list:cli' ),
305308]
306309
307310ALL_ALIASES = {
Original file line number Diff line number Diff line change 1+ """
2+ SoftLayer.autoscale
3+ ~~~~~~~~~~~~
4+ Autoscale manager
5+
6+ :license: MIT, see LICENSE for more details.
7+ """
8+
9+
10+
11+ class AutoScaleManager (object ):
12+
13+ def __init__ (self , client ):
14+ self .client = client
15+
16+
17+ def list (self ):
18+ print ("LISTING...." )
19+ return True
You can’t perform that action at this time.
0 commit comments