Sha256: 0762b84b061b1b861b3c9ef3bb99ff06d13b56bd7cd174053953540aaac143bd

Contents?: true

Size: 490 Bytes

Versions: 2

Compression:

Stored size: 490 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagabond-0.1.4 lib/vagabond/actions/rebuild.rb
vagabond-0.1.2 lib/vagabond/actions/rebuild.rb