Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ================================================================================
- Error executing action `create` on resource 'template[C:\inetpub\wwwroot\web-ui-dev\public\app\env-vars.js]'
- ================================================================================
- Chef::Mixin::Template::TemplateError
- ------------------------------------
- undefined method `HOST' for ["HOST", "//shome-host"]:Array
- Resource Declaration:
- ---------------------
- # In C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/app-web/recipes/ui.rb
- 83: template "#{node['iis']['docroot']}\\#{app_name}\\public\\app\\env-vars.js" do
- 84: source 'env-vars.config.js.erb'
- 85: variables(
- 86: keys: node['app-web-ui']['env-vars']['keys'],
- 87: api: node['app-web-ui']['env-vars']['api'],
- 88: analytics: node['app-web-ui']['env-vars']['analytics']
- 89: )
- 90: end
- 91:
- Compiled Resource:
- ------------------
- # Declared in C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/app-web/recipes/ui.rb:83:in `from_file'
- template("C:\inetpub\wwwroot\web-ui-dev\public\app\env-vars.js") do
- action [:create]
- retries 0
- retry_delay 2
- default_guard_interpreter :default
- source "env-vars.config.js.erb"
- variables {:keys=>{"GOOGLE"=>"-UtPFQ", "GATEWAY"=>"sdfsd", "GATEWAY_HEADER"=>"fsdfs=="}, :api=>{"HOST"=>"//shome-host", "PATH"=>"/api", "VERSION"=>"/v1"}, :analytics=>{"ACCOUNT"=>"/echo", "PROFILE"=>"/main", "ENV"=>"qa"}}
- declared_type :template
- cookbook_name "app-shipperportal-web"
- recipe_name "ui"
- path "C:\\inetpub\\wwwroot\\web-ui-dev\\public\\app\\env-vars.js"
- end
- Template Context:
- -----------------
- on line #4
- 2: .constant('envConfig', {
- 3: KEYS: '<%= @keys %>',
- 4: API: '<% @api.each do |api| %> "HOST": "<%= api.HOST %>" <% end %>',
- 5: ANALYTICS: '<%= @analytics %>'
- 6: });
- Platform:
- ---------
- x64-mingw32
- Recipe: firewall::default
- * firewall[default] action restart
- (skipped due to only_if)
- (skipped due to only_if)
- (skipped due to only_if)
- (skipped due to only_if)
- * file[C:/Users/vagrant/windows-chef.rules] action create (up to date)
- (up to date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement