Method: CloudstackClient::Cli#console
- Defined in:
- lib/cloudstack_client/cli.rb
#console ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/cloudstack_client/cli.rb', line 92 def console cs_client = client() print "cloudstack_client version #{CloudstackClient::VERSION}" puts " (CloudStack API version #{cs_client.api.api_version})" puts " try: list_virtual_machines state: \"running\"" ARGV.clear Ripl.config[:prompt] = "#{@config[:environment]} >> " Ripl.start binding: cs_client.instance_eval{ binding } end |