vagrant-g5k 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3584cb138bea51e6e39c67fbce25e69edab6a742
4
- data.tar.gz: bbc3daa4abec3664a478c2c3cc74e4902a0e3687
3
+ metadata.gz: 934f74ccf05d864613766099acb707947950009a
4
+ data.tar.gz: 7d5b0d1e8d451a6e595100a95276c8f94c139d6f
5
5
  SHA512:
6
- metadata.gz: e15b9be060f76de0210b35d7392e13ac2c876b8f4ff37a3dfd9bbbe45246535efd1fcdd00cd71817a30c820c51235e5a658ff3efee765ef5e1a7fdfc283cae83
7
- data.tar.gz: d0e4163e16ed67890ad4f5011ea18cf54edd991395022bc12e1abcec6dc120aefea755061d542c58b4a6a2d5be97af9e3dbd14c10d7b06b4e32d9b421e8f00a0
6
+ metadata.gz: a853be4666273f52df5570f16ce71d356edffb2e63ebe6fe41fdc22478ce89a69ec2d3224f9943b610aa278844c137261276218067377a62b64dea3bf3ca9995
7
+ data.tar.gz: b8c1d6d30b4e61ebf717542a36874804d2d2725d749a6effb5456f25784781b268003e22990dd1c375b23b17bc221666b83820145ca13136b8b63370cccac8b7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.0.12
2
+
3
+ * Send checkpoint signal to the VM when deleting the job
4
+
1
5
  # 0.0.11
2
6
 
3
7
  * Support for other "OAR behind ssh scheduler" (e.g Igrida)
data/Vagrantfile CHANGED
@@ -8,7 +8,6 @@ Vagrant.configure(2) do |config|
8
8
  # box isn't used
9
9
  config.vm.define "vm" do |my|
10
10
  my.vm.box = "dummy"
11
- my.vm.provision "ansible", :playbook => "playbook.yml"
12
11
  end
13
12
 
14
13
  # user to log with inside the vm
@@ -9,8 +9,7 @@ module VagrantPlugins
9
9
  def call(env)
10
10
  job_id = env[:machine].id
11
11
  conn = env[:g5k_connection]
12
- env[:ui].info("Deleting the associated job")
13
- conn.exec("oardel #{job_id}")
12
+ conn.delete_job(job_id)
14
13
  @app.call(env)
15
14
  end
16
15
  end
@@ -102,6 +102,12 @@ module VagrantPlugins
102
102
  return r
103
103
  end
104
104
 
105
+ def delete_job(job_id)
106
+ @ui.info("Deleting the associated job")
107
+ exec("oardel -c -s 12 #{job_id}")
108
+ end
109
+
110
+
105
111
  def check_local_storage(env)
106
112
  # Is the disk image already here ?
107
113
  if @image["pool"].nil?
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module G5K
3
- VERSION = '0.0.11'
3
+ VERSION = '0.0.12'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-g5k
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu Simonin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-02 00:00:00.000000000 Z
11
+ date: 2016-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iniparse