Class: CopyMyConf::Provisioner
- Inherits:
-
Object
- Object
- CopyMyConf::Provisioner
- Defined in:
- lib/copy_my_conf/provisioner.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.config_class ⇒ Object
20 21 22 |
# File 'lib/copy_my_conf/provisioner.rb', line 20 def self.config_class Config end |
Instance Method Details
#configure(root_config) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/copy_my_conf/provisioner.rb', line 4 def configure(root_config) `rm -rf /tmp/copy_my_conf` @to_be_copied = [] config.all_enabled_attributes.each do |conf| @to_be_copied << conf conf.prepare root_config.vm, tmp_root end end |
#provision ⇒ Object
13 14 15 16 17 18 |
# File 'lib/copy_my_conf/provisioner.rb', line 13 def provision channel = @machine.communicate @to_be_copied.each do |conf| conf.provision channel, user_home, tmp_root end end |