Class: VagrantPlugins::Export::Exporter
- Inherits:
-
Object
- Object
- VagrantPlugins::Export::Exporter
- Defined in:
- lib/vagrant-export/exporter.rb
Instance Method Summary collapse
-
#handle(vm, fast, bare) ⇒ Object
String.
-
#initialize(env, logger) ⇒ Exporter
constructor
A new instance of Exporter.
Constructor Details
#initialize(env, logger) ⇒ Exporter
Returns a new instance of Exporter.
14 15 16 17 |
# File 'lib/vagrant-export/exporter.rb', line 14 def initialize(env, logger) @env = env @logger = logger end |
Instance Method Details
#handle(vm, fast, bare) ⇒ Object
Returns string.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/vagrant-export/exporter.rb', line 23 def handle(vm, fast, ) @vm = vm @did_run = false unless fast if can_compress compress else @vm.ui.error('Cannot compress this type of machine') return 1 end end return 1 unless export return 1 unless files() finalize @target_box end |