vagrant-guixsd-guest 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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +8 -32
- data/Vagrantfile +6 -1
- data/lib/cap/halt.rb +10 -11
- data/lib/cap/rsync.rb +11 -0
- data/lib/vagrant-guixsd-guest.rb +5 -0
- data/lib/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae9455480d2db164745e9386eee05273d9891c8e
|
4
|
+
data.tar.gz: fc3f83d73232dd49aa4165c1179c1a37c3ab9557
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36e73ef77e69951610be9aa1500c9fdb6e244c567bb2f759085ae4cc75add034ba7e814a2d0de52a0395b8186672c7a28f90e91bc23eaa9b8718338cf5d1b9c5
|
7
|
+
data.tar.gz: 044aa76903b4fc5960dd21fc6435a6c09f7b0da91ffd3231190b27cbe3a123456d578d4097b0d2e63601276a0d496d62a28f8d352459a18aff39f15c9027bf85
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,35 +1,11 @@
|
|
1
|
-
|
1
|
+
vagrant-guixsd-guest
|
2
|
+
====================
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/vagrant-guixsd-guest.svg)](https://badge.fury.io/rb/vagrant-guixsd-guest)
|
2
4
|
|
3
|
-
|
5
|
+
[GuixSD](https://guix.gnu.org/) guest support plugin for Vagrant.
|
4
6
|
|
5
|
-
|
7
|
+
Vagrant doesn't natively support GuixSD, and so it needs to be told about it in order to fully support various Vagrant functionality (e.g. clean shutdown). Most of it is from the core Linux support, but there's a small amount of customisation for GuixSD-specific stuff.
|
6
8
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'vagrant-guixsd-guest'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install vagrant-guixsd-guest
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
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.
|
30
|
-
|
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).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/palfrey/vagrant-guixsd-guest.
|
9
|
+
TODO
|
10
|
+
----
|
11
|
+
* Make Virtualbox Guest additions work (https://github.com/palfrey/guix-vm/issues/1)
|
data/Vagrantfile
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
Vagrant.configure("2") do |config|
|
2
|
-
config.vm.box = "guixsd"
|
2
|
+
config.vm.box = "palfrey/guixsd"
|
3
|
+
config.vm.box_version = "1.0.1"
|
3
4
|
config.vagrant.plugins = "vagrant-guixsd-guest"
|
5
|
+
if Vagrant.has_plugin?("vagrant-vbguest")
|
6
|
+
config.vbguest.auto_update = false
|
7
|
+
end
|
8
|
+
config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ".git/", rsync__chown: false
|
4
9
|
end
|
data/lib/cap/halt.rb
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
module VagrantPlugins
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
end
|
2
|
+
module GuixSD
|
3
|
+
module Cap
|
4
|
+
class Halt
|
5
|
+
def self.halt(machine)
|
6
|
+
begin
|
7
|
+
machine.communicate.sudo("shutdown")
|
8
|
+
rescue IOError, Vagrant::Errors::SSHDisconnected
|
9
|
+
# Do nothing, because it probably means the machine shut down
|
10
|
+
# and SSH connection was lost.
|
12
11
|
end
|
13
12
|
end
|
14
13
|
end
|
15
14
|
end
|
16
15
|
end
|
17
|
-
|
16
|
+
end
|
data/lib/cap/rsync.rb
ADDED
data/lib/vagrant-guixsd-guest.rb
CHANGED
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-guixsd-guest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Parker-Shemilt
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- bin/console
|
55
55
|
- bin/setup
|
56
56
|
- lib/cap/halt.rb
|
57
|
+
- lib/cap/rsync.rb
|
57
58
|
- lib/guest.rb
|
58
59
|
- lib/vagrant-guixsd-guest.rb
|
59
60
|
- lib/version.rb
|