Sha256: d0f158b6b17b31d7379f5cd91d486bd25e038b830c9053e8e8b4b2e1adff3cee

Contents?: true

Size: 671 Bytes

Versions: 54

Compression:

Stored size: 671 Bytes

Contents

# frozen_string_literal: true

require 'log4r'
require 'securerandom'
require 'digest/md5'

module VagrantPlugins
  module ProviderZone
    module Action
      # This will create the zone
      class Create
        def initialize(app, _env)
          @logger = Log4r::Logger.new('vagrant_zones::action::import')
          @app = app
        end

        def call(env)
          @machine = env[:machine]
          @driver  = @machine.provider.driver
          @machine.id = SecureRandom.uuid
          @driver.create_dataset(env[:ui])
          @driver.zonecfg(env[:ui])
          @driver.install(env[:ui])
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
vagrant-zones-0.1.77 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.76 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.75 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.73 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.72 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.71 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.70 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.69 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.67 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.66 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.65 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.64 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.63 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.62 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.61 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.60 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.59 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.58 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.57 lib/vagrant-zones/action/create.rb
vagrant-zones-0.1.56 lib/vagrant-zones/action/create.rb