Class: VagrantPlugins::Nixos::Provisioner
- Inherits:
-
Object
- Object
- VagrantPlugins::Nixos::Provisioner
- Defined in:
- lib/vagrant-nixos/provisioner.rb
Instance Method Summary collapse
-
#provision ⇒ Object
This is the method called when the actual provisioning should be done.
Instance Method Details
#provision ⇒ Object
This is the method called when the actual provisioning should be done. The communicator is guaranteed to be ready at this point, and any shared folders or networks are already setup.
No return value is expected.
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/vagrant-nixos/provisioner.rb', line 13 def provision prov = if config.inline config.inline elsif config.path File.read(config.path) elsif config.expression "{config, pkgs, ...}: with pkgs; #{@config.expression}" else "{}" end write_config('vagrant-provision.nix', prov) rebuild! end |