vagrant-nixos-plugin 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +5 -0
- data/lib/vagrant-nixos/config.rb +6 -0
- data/lib/vagrant-nixos/provisioner.rb +1 -0
- data/lib/vagrant-nixos/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f852942d6057d5648837fdabb08f8052d24983ac
|
4
|
+
data.tar.gz: 1f3e29fe1a56ddfffd02e51447391f7f221e25d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1f811c4fcde6a40ae7f17d205104171882e7027cb3fa046abf11025612c21ed2e0c8e61a6cdec0f7fa285e7e9050325d2f3f9c050609c74be3013b0f7302b87
|
7
|
+
data.tar.gz: 93018b0f0a4df8c11b1cc4c6cb72ff9195bbd75d6b6600b38f6f73fc4a0bf9a0599712ef82dede6c140d6d28b7e03471f58e2d307b791b0687fe17f9110df035
|
data/History.md
CHANGED
data/lib/vagrant-nixos/config.rb
CHANGED
@@ -21,6 +21,10 @@ module VagrantPlugins
|
|
21
21
|
# @return [true, false]
|
22
22
|
attr_accessor :verbose
|
23
23
|
|
24
|
+
# Pass --show-trace to nixos-rebuild
|
25
|
+
# @return [true, false]
|
26
|
+
attr_accessor :trace
|
27
|
+
|
24
28
|
# Override the default NIX_PATH
|
25
29
|
# @return [String, nil]
|
26
30
|
attr_accessor :NIX_PATH
|
@@ -31,6 +35,7 @@ module VagrantPlugins
|
|
31
35
|
@expression = UNSET_VALUE
|
32
36
|
@include = UNSET_VALUE
|
33
37
|
@verbose = UNSET_VALUE
|
38
|
+
@trace = UNSET_VALUE
|
34
39
|
@NIX_PATH = UNSET_VALUE
|
35
40
|
end
|
36
41
|
|
@@ -40,6 +45,7 @@ module VagrantPlugins
|
|
40
45
|
@expression = nil if @expression == UNSET_VALUE
|
41
46
|
@include = false if @include == UNSET_VALUE
|
42
47
|
@verbose = false if @verbose == UNSET_VALUE
|
48
|
+
@trace = false if @trace == UNSET_VALUE
|
43
49
|
@NIX_PATH = nil if @NIX_PATH == UNSET_VALUE
|
44
50
|
end
|
45
51
|
|
@@ -32,6 +32,7 @@ module VagrantPlugins
|
|
32
32
|
|
33
33
|
# rebuild
|
34
34
|
rebuild_cmd = "nixos-rebuild switch"
|
35
|
+
rebuild_cmd = "#{rebuild_cmd} --show-trace" if config.trace
|
35
36
|
rebuild_cmd = "#{rebuild_cmd} -I nixos-config=/etc/nixos/vagrant.nix" if config.include
|
36
37
|
rebuild_cmd = "NIX_PATH=#{config.NIX_PATH}:$NIX_PATH #{rebuild_cmd}" if config.NIX_PATH
|
37
38
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-nixos-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Farmiloe
|
@@ -9,34 +9,34 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-02-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '1.5'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '1.5'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
description: Add basic nix configuration provisioning for NixOS guests in Vagrant
|
@@ -47,7 +47,7 @@ executables: []
|
|
47
47
|
extensions: []
|
48
48
|
extra_rdoc_files: []
|
49
49
|
files:
|
50
|
-
- .gitignore
|
50
|
+
- ".gitignore"
|
51
51
|
- Gemfile
|
52
52
|
- History.md
|
53
53
|
- LICENSE.txt
|
@@ -70,17 +70,17 @@ require_paths:
|
|
70
70
|
- lib
|
71
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- -
|
78
|
+
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.6.8
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Vagrant Nix provisioning plugin for NixOS
|