vagrant-save 0.2.1 → 0.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3561cadd4585539ec20b6f03a5ad974a2592db94
4
- data.tar.gz: d209f530f8b85a2c98468eac1c339de965eb3af3
3
+ metadata.gz: e2d6df151e3216577f015914dc2c4cfc552da299
4
+ data.tar.gz: 62b8cb8d3b7cfade6fa3390e91cb7d722a7639ec
5
5
  SHA512:
6
- metadata.gz: d5a06f05d6ac4489e5227b9173e94807af03b88182a68876068dcd145073d1c1c944c9ea8883f32c110a2075216b523df8f325576da33f8999c014f773f91ddd
7
- data.tar.gz: 7de1f34573cd4bceb8224a27255fc1b281bf178ad0d08b26d0cc780084b1397cd21c622d962eaf2a9424bc4f86b16ff79c85efbef2b98af23fa04aae30175ae7
6
+ metadata.gz: 219d8ba338b8965d96bd87ed66187de35e46c4c48abbb557f7845b99d078a02c93fff5d34baee44fbf5513201f4091992a17634e376424b419e9294321720fec
7
+ data.tar.gz: 8f7ec5b06a5ac87c1f63c3adb73ed30e2bdfe0d8f33e32b4ab047c90eb9b2d00d1972f0a1f60432f321bedc89e9d3131c7b929007ad3b9bc027c2ef10a54f379
@@ -23,7 +23,7 @@ module VagrantPlugins
23
23
  o.separator ''
24
24
 
25
25
  o.on('-v', '--version', 'Set the version of the uploaded box. Defaults to next bugfix version') do |c|
26
- options[:clean] = c.to_i
26
+ options[:version] = c.to_s
27
27
  end
28
28
 
29
29
  o.on('-k', '--keep', 'Number of versions to keep, older will be removed. Must be >= 1. Defaults to 0.') do |c|
@@ -71,10 +71,19 @@ module VagrantPlugins
71
71
 
72
72
  up.send(machine, file, version)
73
73
 
74
+ @env.boxes.add(
75
+ file,
76
+ machine.box.name,
77
+ version,
78
+ force: true,
79
+ metadata_url: up.make_url(machine),
80
+ providers: machine.provider_name.to_s
81
+ )
82
+
74
83
  FileUtils.remove(file)
75
84
 
76
85
  if options[:keep] && options[:keep] > 1
77
- up.clean(machine, options[:keep])
86
+ up.clean(machine, options[:keep])
78
87
  end
79
88
 
80
89
  end
@@ -83,8 +83,6 @@ module VagrantPlugins
83
83
  0
84
84
  end
85
85
 
86
- private
87
-
88
86
  # @param [Vagrant::Machine] machine
89
87
  # @return string
90
88
  def make_url(machine)
@@ -5,6 +5,6 @@
5
5
 
6
6
  module VagrantPlugins
7
7
  module Save
8
- VERSION = '0.2.1'
8
+ VERSION = '0.2.2'
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-save
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Großberger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-13 00:00:00.000000000 Z
11
+ date: 2015-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vagrant-export