Sha256: e20ab7f85bf75f818f23a6e006be95ed33541cf68e71eb401d831e638983751b

Contents?: true

Size: 681 Bytes

Versions: 37

Compression:

Stored size: 681 Bytes

Contents

require 'vagrant/util/template_renderer'

module VagrantPlugins
  module Parallels
    module Action
      class PackageConfigFiles
        # For TemplateRenderer
        include Vagrant::Util

        def initialize(app, env)
          @app = app
        end

        def call(env)
          @env = env
          create_metadata
          @app.call(env)
        end

        def create_metadata
          File.open(File.join(@env["export.temp_dir"], "metadata.json"), "w") do |f|
            f.write(template_metadatafile)
          end
        end

      private
        def template_metadatafile
          %Q({"provider": "parallels"}\n)
        end
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
vagrant-parallels-1.4.2 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.4.1 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.4.0 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.4.0.rc1 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.13 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.12 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.10 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.9 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.8 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.7 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.6 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.5 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.4 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.3 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.3.rc1 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.2 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.1 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.3.0 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.2.2 lib/vagrant-parallels/action/package_config_files.rb
vagrant-parallels-1.2.1 lib/vagrant-parallels/action/package_config_files.rb