Class: BaseProvisioner

Inherits:
Object
  • Object
show all
Includes:
VagrantPlugins::Conductor::Module
Defined in:
lib/vagrant/conductor/modules/_base/_base.rb

Instance Attribute Summary

Attributes included from VagrantPlugins::Conductor::Module

#args, #config, #scripts, #templates

Instance Method Summary collapse

Methods included from VagrantPlugins::Conductor::Module

#generate_template, #initialize, #shell_provision

Instance Method Details

#provisionObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/vagrant/conductor/modules/_base/_base.rb', line 5

def provision

  unless args.find?('install', false)
    return
  end

  shell_provision(%{
    bash #{@scripts}/system.sh
    bash #{@scripts}/grub.sh
    bash #{@scripts}/mysql.sh
    bash #{@scripts}/postgresql.sh
    bash #{@scripts}/php.sh
    bash #{@scripts}/nginx.sh
    bash #{@scripts}/composer.sh
    bash #{@scripts}/redis.sh
    bash #{@scripts}/memcache.sh
    bash #{@scripts}/sqlite.sh
    bash #{@scripts}/nodejs.sh
    bash #{@scripts}/beanstalkd.sh
    bash #{@scripts}/xdebug.sh
    bash #{@scripts}/python-pip.sh
  }, nil, true)

  # Minimize The Disk Image
  shell_provision(%{
    echo 'Minimizing disk image...'
    dd if=/dev/zero of=/EMPTY bs=1M
    rm -f /EMPTY
    sync
  }, nil, true)

end