Sha256: 89b60d5383bd323d9044bdcdade693bd20d46ea3d88112024b0066ea4233afd2

Contents?: true

Size: 779 Bytes

Versions: 2

Compression:

Stored size: 779 Bytes

Contents

require 'vagrant-invade/plugin'
require 'vagrant-invade/version'
require 'vagrant-invade/extend'
require 'yaml'

module VagrantPlugins
  module Invade

    autoload :Validator, 'vagrant-invade/validator'
    autoload :InvadeModule, 'vagrant-invade/module'
    autoload :Generator, 'vagrant-invade/generator'
    autoload :Helper, 'vagrant-invade/helper'

    def self.get_invade_config

      #Loading Invade configuration settings from file
      invade_config_file = Dir.pwd + '/invade.yml'

      if File.exists?(invade_config_file)
        begin
          return YAML.load_file(invade_config_file)
        rescue SyntaxError => e
          @logger.error e
          fail e
        end
      else
        @config_values = nil
      end

      @config_values
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-invade-0.7.0 lib/vagrant-invade.rb
vagrant-invade-0.6.4 lib/vagrant-invade.rb