lib/gogetit/cli.rb in gogetit-0.5.3 vs lib/gogetit/cli.rb in gogetit-0.6.0

- old
+ new

@@ -7,14 +7,14 @@ include Gogetit::Util package_name 'Gogetit' desc 'list', 'List containers and instances, running currently.' def list - puts "Listing LXD containers on #{Gogetit.config[:lxd][:url]}.." - system("lxc list #{Gogetit.config[:lxd][:name]}:") + puts "Listing LXD containers on #{Gogetit.config[:lxd][:nodes][0][:url]}.." + system("lxc list #{Gogetit.config[:lxd][:nodes][0][:name]}:") puts '' - puts "Listing KVM domains on #{Gogetit.config[:libvirt][:url]}.." - system("virsh -c #{Gogetit.config[:libvirt][:url]} list --all") + puts "Listing KVM domains on #{Gogetit.config[:libvirt][:nodes][0][:url]}.." + system("virsh -c #{Gogetit.config[:libvirt][:nodes][0][:url]} list --all") end desc 'create NAME', 'Create either a container or KVM domain.' method_option :provider, :aliases => '-p', :type => :string, \ :default => 'lxd', :desc => 'A provider such as lxd and libvirt'