Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No resource, method, or local variable named create_rvm_shell_chef_wrapper' for Chef::Recipe "default"' #410

Open
shrinathaithal opened this issue Jun 5, 2021 · 2 comments

Comments

@shrinathaithal
Copy link

shrinathaithal commented Jun 5, 2021

πŸ‘» Brief Description

Trying to install this using opsworks_ruby. On opsworks. Breaks the run with unknown method. What am I missing?

πŸ₯ž Cookbook version

1.0.0

πŸ‘©β€πŸ³ Chef-Infra Version

12.13.37

🎩 Platform details

AWS Opsworks: Ubuntu: 18.04.

Steps To Reproduce

Used rvm::default & rvm::system to install rvm, but fails with this error -

================================================================================
Recipe Compile Error in /var/chef/runs/0bb2b33f-522c-4bc0-9231-62aae48d01f5/local-mode-cache/cache/cookbooks/rvm/recipes/default.rb
================================================================================
 
NameError
---------
No resource, method, or local variable named `create_rvm_shell_chef_wrapper' for `Chef::Recipe "default"'
 
Cookbook Trace:
---------------
/var/chef/runs/0bb2b33f-522c-4bc0-9231-62aae48d01f5/local-mode-cache/cache/cookbooks/rvm/recipes/default.rb:27:in `from_file'
 
Relevant File Content:
----------------------
/var/chef/runs/0bb2b33f-522c-4bc0-9231-62aae48d01f5/local-mode-cache/cache/cookbooks/rvm/recipes/default.rb:
 
20:  # install rvm api gem during chef compile phase
21:  chef_gem 'rvm' do
22:    action :install
23:    version '>= 1.11.3.6'
24:  end
25:  require 'rvm'
26:  
27>> create_rvm_shell_chef_wrapper
28:  create_rvm_chef_user_environment
29:  
30:  class Chef::Resource
31:    # mix in #rvm_cmd_wrap helper into resources
32:    include Chef::RVM::ShellHelpers
33:  end
34:  
35:  class Chef::Recipe
36:    # mix in recipe helpers

I am not fluent on recent Chef things, so what am I missing?

@lunaru
Copy link

lunaru commented Oct 13, 2021

Ditto on this error and it seems like create_rvm_shell_chef_wrapper is not defined anywhere in the repo. Any ideas?

@Skipants
Copy link

Looks like it was removed in d4e85a8 #354, but recipes/default.rb wasn't updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants