Class: VagrantSyllabusProvisioner::Provisioner

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant_syllabus_provisioner/provisioner.rb

Defined Under Namespace

Classes: ExecutionError

Instance Method Summary collapse

Instance Method Details

#provisionObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/vagrant_syllabus_provisioner/provisioner.rb', line 12

def provision
  with_backend do |backend|
    files.each do |file|
      config = Syllabus::Config.new_from_file(file: file, backend: backend)
      config.commands.each do |command|
        result = backend.run_command(command, with_output: true)
        handle_result(command, result)
      end
    end
  end
end