pve 0.1.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock DELETED
@@ -1,70 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- pve (0.1.1)
5
- activesupport (>= 2)
6
- dencli (~> 0.3.1)
7
- ipaddress (~> 0.8.3)
8
- pmap (~> 1.1)
9
- rest-client (~> 2.1)
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- activesupport (6.1.3.1)
15
- concurrent-ruby (~> 1.0, >= 1.0.2)
16
- i18n (>= 1.6, < 2)
17
- minitest (>= 5.1)
18
- tzinfo (~> 2.0)
19
- zeitwerk (~> 2.3)
20
- concurrent-ruby (1.1.8)
21
- dencli (0.3.1)
22
- diff-lcs (1.4.4)
23
- domain_name (0.5.20190701)
24
- unf (>= 0.0.5, < 1.0.0)
25
- http-accept (1.7.0)
26
- http-cookie (1.0.3)
27
- domain_name (~> 0.5)
28
- i18n (1.8.10)
29
- concurrent-ruby (~> 1.0)
30
- ipaddress (0.8.3)
31
- mime-types (3.3.1)
32
- mime-types-data (~> 3.2015)
33
- mime-types-data (3.2021.0225)
34
- minitest (5.14.4)
35
- netrc (0.11.0)
36
- pmap (1.1.1)
37
- rest-client (2.1.0)
38
- http-accept (>= 1.7.0, < 2.0)
39
- http-cookie (>= 1.0.2, < 2.0)
40
- mime-types (>= 1.16, < 4.0)
41
- netrc (~> 0.8)
42
- rspec (3.10.0)
43
- rspec-core (~> 3.10.0)
44
- rspec-expectations (~> 3.10.0)
45
- rspec-mocks (~> 3.10.0)
46
- rspec-core (3.10.1)
47
- rspec-support (~> 3.10.0)
48
- rspec-expectations (3.10.1)
49
- diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.10.0)
51
- rspec-mocks (3.10.2)
52
- diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.10.0)
54
- rspec-support (3.10.2)
55
- tzinfo (2.0.4)
56
- concurrent-ruby (~> 1.0)
57
- unf (0.1.4)
58
- unf_ext
59
- unf_ext (0.0.7.7)
60
- zeitwerk (2.4.2)
61
-
62
- PLATFORMS
63
- x86_64-linux
64
-
65
- DEPENDENCIES
66
- pve!
67
- rspec (~> 3.2)
68
-
69
- BUNDLED WITH
70
- 2.2.15
data/lib/pve/qm.rb DELETED
@@ -1,32 +0,0 @@
1
- class PVE::Cli
2
- def cli_qm
3
- cli.sub :qm, "Virtual Machines", aliases: %w[v vm qemu], &lambda {|qm|
4
- qm.cmd :list, "List VM-IDs", aliases: ['ls'], &lambda {|node=nil|
5
- connect
6
- nodes = Proxmox::Node.all
7
- nodes = nodes.select {|n| node == n.name } if node
8
- nodes.flat_map do |n|
9
- n.qemu.map {|c| c.vmid.to_i }
10
- end.sort.each {|c| puts c }
11
- }
12
-
13
- qm.cmd :status, "List VMs with status", aliases: [nil], &lambda {|node=nil|
14
- connect
15
- to = TablizedOutput.new %w[Status HA ID Name Host Uptime CPU Mem/MiB Disk/MiB]
16
- nodes = Proxmox::Node.all
17
- nodes = nodes.select {|n| node == n.name } if node
18
- nodes.each do |n|
19
- n.qemu.each &to.method( :virt)
20
- end
21
- to.print order: [3]
22
- }
23
-
24
- qm.cmd :exec, "Executes Command in VM via qemu-guest-agent", min: 4, &lambda {|name_or_id, *command|
25
- connect
26
- STDERR.puts "! #{$?.exitstatus}" unless Proxmox::Qemu.find!( name_or_id).exec *command
27
- }
28
-
29
- qm.cmd 'help', '', aliases: ['-h', '--help'], &lambda {|*args| help qm, *args }
30
- }
31
- end
32
- end