vagrant-disksize 0.1.0 → 0.1.1

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: 9c0e70788c6b8f747354f486d19a1e85b3ada6be
4
- data.tar.gz: dc08aab0dfc7dcd908e6cd2dc6b0a33626f8c26c
3
+ metadata.gz: 61d5db584b6795b573367b944bdc10de23ec4e0e
4
+ data.tar.gz: 9cf2dbcd7be8b19a7c53015d13b9d1dcc1bb02a4
5
5
  SHA512:
6
- metadata.gz: 6b6b0e2782b10a6b855f93f8b3af99abe8a6c5aae58c8eed0a1c114e09b06a603a0c0ea3beda2652759822085748b1f8cab0701c032fbc5887f584ae9a4d013c
7
- data.tar.gz: 925ecacc060eebb5399c722bc53f6b380ffa0d621280a0139cd699726e8ca0f26af516784bf67fcc6cfdd96497bcaf32cf870ca11da4fac87a103f7047df0b50
6
+ metadata.gz: b97cf15cc10839ab1581b8226ddeed7106870a8796cff8d68d94002ad327399187f09714c9967270b0184b278b00d944fca86a6228e280e3c288df7518b1c60a
7
+ data.tar.gz: a33eb361fa69f79f2531b08ac1361bee7b25bae91e3d58149c5a2f8756389f6fe488a05e58fc04785cece47e3d02d5f6e75ed779f92cf3d521145e8a315ada33
data/README.md CHANGED
@@ -1,39 +1,54 @@
1
- # Vagrant::Disksize
1
+ # vagrant-disksize
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/vagrant/disksize`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ A Vagrant plugin to resize disks in VirtualBox
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
5
 
7
6
  ## Installation
8
7
 
9
- Add this line to your application's Gemfile:
8
+
9
+ ```shell
10
+ vagrant plugin install vagrant-disksize
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ In your Vagrantfile
10
16
 
11
17
  ```ruby
12
- gem 'vagrant-disksize'
18
+ config.disksize.size = '50GB'
13
19
  ```
14
20
 
15
- And then execute:
21
+ ## Limitations
16
22
 
17
- $ bundle
23
+ At present only the first disk will be resized. That seems to be OK for
24
+ typical boxes such as the official Ubuntu images for Xenial, but there may
25
+ well be other configurations where the first disk found isn't the main HDD.
18
26
 
19
- Or install it yourself as:
27
+ The plugin only works with VirtualBox but it will issue an error message
28
+ and then disable itself if you try to use it with another provider.
20
29
 
21
- $ gem install vagrant-disksize
30
+ Disks can only be increased in size. There is no facility to shrink a disk.
22
31
 
23
- ## Usage
32
+ Depending on the guest, you may need to resize the partition and the filesystem
33
+ from within the guest. At present the plugin only resizes the underlying disk.
24
34
 
25
- TODO: Write usage instructions here
35
+ This hasn't been tested on a wide variety of versions of Vagrant or VirtualBox.
36
+ It works for, at least, Vagrant 1.8.5 and VirtualBox 5.1.x, but any
37
+ feedback about other versions, particularly older ones, would be much appreciated.
26
38
 
27
39
  ## Development
28
40
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
41
+ After checking out the repo, run `bin/setup` to install dependencies.
42
+ You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
43
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
44
+ To install this gem onto your local machine, run `bundle exec rake install`.
45
+ To release a new version, update the version number in `version.rb`, and then
46
+ run `bundle exec rake release`, which will create a git tag for the version,
47
+ push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
48
 
33
49
  ## Contributing
34
50
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/vagrant-disksize.
36
-
51
+ Bug reports and pull requests are welcome on GitHub at https://github.com/sprotheroe/vagrant-disksize.
37
52
 
38
53
  ## License
39
54
 
@@ -10,6 +10,7 @@ module Vagrant
10
10
  end
11
11
 
12
12
  def finalize!
13
+ return if @size == UNSET_VALUE
13
14
  # Convert from human to machine readable
14
15
  size_str = @size.to_s.strip
15
16
  matches = SIZE_REGEX.match(size_str)
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Disksize
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-disksize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Protheroe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-23 00:00:00.000000000 Z
11
+ date: 2016-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler