流浪者意外的keyword_end,期望输入结束

时间:2019-05-17 16:49:59

标签: php ruby vagrant

请帮助我。我不能解决这个问题 当我无所事事时说: 流浪错误:语法错误,意外的keyword_end,期望输入结束

代码:

# -*- mode: ruby -*-

dir = File.dirname(File.expand_path(__FILE__))

require 'yaml'
require "#{dir}/puphpet/ruby/deep_merge.rb"
require "#{dir}/puphpet/ruby/to_bool.rb"

configValues = YAML.load_file("#{dir}/puphpet/config.yaml")

provider = ENV['VAGRANT_DEFAULT_PROVIDER'] ? ENV['VAGRANT_DEFAULT_PROVIDER'] : 'local'
if File.file?("#{dir}/puphpet/config-#{provider}.yaml")
  custom = YAML.load_file("#{dir}/puphpet/config-#{provider}.yaml")
  configValues.deep_merge!(custom)
end

if File.file?("#{dir}/puphpet/config-custom.yaml")
  custom = YAML.load_file("#{dir}/puphpet/config-custom.yaml")
  configValues.deep_merge!(custom)
end

data = configValues['vagrantfile']

Vagrant.require_version '>= 1.8.1'

domains = {
  frontend: 'shop-frontend.com',
  backend:  'shop-backend.com',
  static:   'static.shop-frontend.com'
}

config = {
  local: './vagrant/config/vagrant-local.yml',
  example: './vagrant/config/vagrant-local.example.yml'
}

end

1 个答案:

答案 0 :(得分:2)

嗯,最后一个end结束了什么?您的脚本中什么都没有