esxi 0.0.5.1 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/esxi.rb +4 -4
  3. data/lib/esxi/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 595dc947f619d1f03a148b269231c0ddc5ebcd2f
4
- data.tar.gz: 5ec668d7c963d993fb32fce30ad0d3e6e4566ab5
3
+ metadata.gz: d373699ca7750b4c6d118362502f74b8607eedd7
4
+ data.tar.gz: 6ba3f2fb1019d4614e632d1d768a9553fd9eb6c3
5
5
  SHA512:
6
- metadata.gz: f76b9199d3feb3e7234a05a370068cdf0f38c700b73c0e46e2159c2319c05094b28dc550a284816c762754fe4a7f21753ee13db888cd40d1ce3daaa6db711da4
7
- data.tar.gz: a5f4d041730e116c47ad931b649618a432e7724222c361edb960f00a787b59a3bb03df9c06fc93eea1f337787d1f67d32f497e306f4d68807bdffbc4d27b5c57
6
+ metadata.gz: 489e15ec82bf2acedb2b496b726159767f57376396bbb892c9b9c634e07d38cf0277767f0ba964aa677bdb0d48c9036a76b6f08244575945a26adda5323243db
7
+ data.tar.gz: b9fd0b011c20e70f453cdd9c60509eb8b799c3d4dd77d1192fb93a6c31d93357a82aa6e068dc91ffda8943298946c8ba53362b637d2f96ac36d7265a84fdb363
data/lib/esxi.rb CHANGED
@@ -40,7 +40,7 @@ class VM
40
40
 
41
41
  def create_snapshot vmid, name, description
42
42
  description ||= "Snapshot created by https://github.com/prashanthrajagopal/esxi"
43
- Util.run(@session, "nohup vim-cmd vmsvc/snapshot.create #{vmid} #{name} #{description} 1 0 &")
43
+ Util.run(@session, "nohup vim-cmd vmsvc/snapshot.create #{vmid} #{name} #{description} 1 0 > nohup.log < /dev/null &")
44
44
  end
45
45
 
46
46
  def revert_snapshot vmid, snapshot_name
@@ -50,7 +50,7 @@ class VM
50
50
  if snap["name"].downcase == snapshot_name.strip.downcase
51
51
  snap_id = snap["id"]
52
52
  #puts "DEBUG: I would revert to #{snapshot}"
53
- Util.run(@session, "nohup vim-cmd vmsvc/snapshot.revert #{vmid} #{snap_id} 0 &")
53
+ Util.run(@session, "nohup vim-cmd vmsvc/snapshot.revert #{vmid} #{snap_id} 0 > nohup.log < /dev/null &")
54
54
  return true
55
55
  end
56
56
  end
@@ -64,7 +64,7 @@ class VM
64
64
  if snap["name"].downcase == snapshot_name.strip.downcase
65
65
  snap_id = snap["id"]
66
66
  #puts "DEBUG: I would remove #{snapshot}"
67
- Util.run(@session, "nohup vim-cmd vmsvc/snapshot.remove #{vmid} #{snap_id} &")
67
+ Util.run(@session, "nohup vim-cmd vmsvc/snapshot.remove #{vmid} #{snap_id} > nohup.log < /dev/null &")
68
68
  return true
69
69
  end
70
70
  end
@@ -88,7 +88,7 @@ class VM
88
88
  end
89
89
 
90
90
  def delete_all_snapshots vmid
91
- Util.run(@session, "nohup vim-cmd vmsvc/snapshot.removeall #{vmid} &")
91
+ Util.run(@session, "nohup vim-cmd vmsvc/snapshot.removeall #{vmid} > nohup.log < /dev/null &")
92
92
  end
93
93
 
94
94
  def running? vmid
data/lib/esxi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Esxi
2
- VERSION = "0.0.5.1"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esxi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5.1
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prashanth Rajagopal