Sha256: 1f80efd808b3fb24d50d2fc524788b2bf1d4b7814841ad66b8b1f92ba9b87b49

Contents?: true

Size: 520 Bytes

Versions: 5

Compression:

Stored size: 520 Bytes

Contents

module Vagabond
  module Actions
    module Rebuild
      def _rebuild
        name_required!
        ui.info "#{ui.color('Vagabond:', :bold)} Rebuilding #{ui.color(name, :blue)}"
        _destroy
        @lxc = Lxc.new(name)
        _destroy
        options[:force_solo] = true
        ui.info ui.color('  -> DESTROYED!', :red)
        internal_config.run_solo
        internal_config[mappings_key].delete(name)
        internal_config.save
        ui.info ui.color('  -> REBUILT!', :green)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagabond-0.2.8 lib/vagabond/actions/rebuild.rb
vagabond-0.2.6 lib/vagabond/actions/rebuild.rb
vagabond-0.2.4 lib/vagabond/actions/rebuild.rb
vagabond-0.2.2 lib/vagabond/actions/rebuild.rb
vagabond-0.2.0 lib/vagabond/actions/rebuild.rb