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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ad591f7f7c7dc86166d600f770c26ec71ec4e74
4
- data.tar.gz: dd218e262b87b73fe514a7218dc10a7558f985e9
3
+ metadata.gz: ae9455480d2db164745e9386eee05273d9891c8e
4
+ data.tar.gz: fc3f83d73232dd49aa4165c1179c1a37c3ab9557
5
5
  SHA512:
6
- metadata.gz: 23f771de97b767d0424e98a578a3fb5399ec6b330fccc9054d233f9202e5d7b6990786786b1be0dd341ecfcaa0766e75204246ffcac66174cb05904fe917ad67
7
- data.tar.gz: 8b9b19d15902fd95b913ef357a57ffe6b06cb44d15d376186a08c0c2977c61630e3de7bc6088b9f211e55ca92c29dd1fa3693241d365d89cdaf38d1f47fa48a7
6
+ metadata.gz: 36e73ef77e69951610be9aa1500c9fdb6e244c567bb2f759085ae4cc75add034ba7e814a2d0de52a0395b8186672c7a28f90e91bc23eaa9b8718338cf5d1b9c5
7
+ data.tar.gz: 044aa76903b4fc5960dd21fc6435a6c09f7b0da91ffd3231190b27cbe3a123456d578d4097b0d2e63601276a0d496d62a28f8d352459a18aff39f15c9027bf85
@@ -28,7 +28,7 @@ GIT
28
28
  PATH
29
29
  remote: .
30
30
  specs:
31
- vagrant-guixsd-guest (0.1.0)
31
+ vagrant-guixsd-guest (0.1.1)
32
32
 
33
33
  GEM
34
34
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,35 +1,11 @@
1
- # Vagrant::Guixsd::Guest
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
- 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/guixsd/guest`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ [GuixSD](https://guix.gnu.org/) guest support plugin for Vagrant.
4
6
 
5
- TODO: Delete this and the text above, and describe your gem
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
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
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)
@@ -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
@@ -1,17 +1,16 @@
1
1
  module VagrantPlugins
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.
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
@@ -0,0 +1,11 @@
1
+ module VagrantPlugins
2
+ module GuixSD
3
+ module Cap
4
+ class RSync
5
+ def self.rsync_install(machine)
6
+ machine.communicate.execute("guix package -i rsync")
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -22,6 +22,11 @@ module VagrantPlugins
22
22
  require_relative "cap/halt"
23
23
  Cap::Halt
24
24
  end
25
+
26
+ guest_capability(:guixsd, :rsync_install) do
27
+ require_relative "cap/rsync"
28
+ Cap::RSync
29
+ end
25
30
  end
26
31
  end
27
32
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module GuixSD
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
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.0
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