Method: VagrantLXD::Action.reload

Defined in:
lib/vagrant-lxd/action.rb

.reloadObject



274
275
276
277
278
279
280
281
282
283
284
285
286
# File 'lib/vagrant-lxd/action.rb', line 274

def reload
  builder do |b|
    b.use Call, state do |env, c|
      case env[:machine_state]
      when Vagrant::MachineState::NOT_CREATED_ID
        next
      when :frozen, :running
        c.use halt
      end
      c.use resume
    end
  end
end