Last active
August 29, 2015 14:01
-
-
Save solarce/1fd144e5f0b285f3fc04 to your computer and use it in GitHub Desktop.
i haz a ruby sad. I've got ruby-1.9.3-p545 installed rvm because that's what our chef-repo is pinned to right now, I've got chef and various things installed via bundler, if I installed a knife plugin, the binstub doesn't see it but the knife binary does
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/code/lookout/chef-repo]$ ruby -v *[master][ruby-1.9.3-p545@global] | |
ruby 1.9.3p545 (2014-02-24 revision 45159) [x86_64-darwin13.1.0] | |
[~/code/lookout/chef-repo]$ which ruby *[master][ruby-1.9.3-p545@global] | |
/Users/bburton/.rvm/rubies/ruby-1.9.3-p545/bin/ruby | |
[~/code/lookout/chef-repo]$ gem -v *[master][ruby-1.9.3-p545@global] | |
w2.2.2 | |
h% [~/code/lookout/chef-repo]$ which gem *[master][ruby-1.9.3-p545@global] | |
gem () { | |
typeset result | |
( | |
typeset rvmrc | |
rvm_rvmrc_files=("/etc/rvmrc" "$HOME/.rvmrc") | |
if [[ -n "${rvm_prefix:-}" ]] && ! [[ "$HOME/.rvmrc" -ef "${rvm_prefix}/.rvmrc" ]] | |
then | |
rvm_rvmrc_files+=("${rvm_prefix}/.rvmrc") | |
fi | |
for rvmrc in "${rvm_rvmrc_files[@]}" | |
do | |
[[ -s "${rvmrc}" ]] && source "${rvmrc}" || true | |
done | |
unset rvm_rvmrc_files | |
command gem "$@" | |
) || result=$? | |
hash -r | |
return ${result:-0} | |
} | |
[~/code/lookout/chef-repo]$ gem list knife *[master][ruby-1.9.3-p545@global] | |
*** LOCAL GEMS *** | |
knife-block (0.1.0) | |
knife-spork (1.3.2) | |
[~/code/lookout/chef-repo]$ /Users/bburton/.rvm/gems/ruby-1.9.3-p545@global/gems/chef-11.8.2/bin/knife spork *[master][ruby-1.9.3-p545@global] | |
FATAL: Cannot find sub command for: 'spork' | |
Available spork subcommands: (for details, knife SUB-COMMAND --help) | |
** SPORK COMMANDS ** | |
knife spork bump COOKBOOK [major|minor|patch|manual] | |
knife spork check COOKBOOK (options) | |
knife data bag create BAG [ITEM] (options) | |
knife data bag delete BAG [ITEM] (options) | |
knife spork data bag edit BAG ITEM (options) | |
knife data bag from file BAG FILE|FOLDER [FILE|FOLDER..] (options) | |
knife spork environment create ENVIRONMENT (options) | |
knife spork environment delete ENVIRONMENT (options) | |
knife spork environment edit ENVIRONMENT (options) | |
knife spork environment from file FILENAME (options) | |
knife spork info | |
knife spork node create NODE (options) | |
knife spork node delete NODE (options) | |
knife spork node edit NODE (options) | |
knife spork node from file FILE (options) | |
knife spork node run_list add [NODE] [ENTRY[,ENTRY]] (options) | |
knife spork node run_list add [NODE] [ENTRY[,ENTRY]] (options) | |
knife spork node run_list set NODE ENTRIES (options) | |
knife spork omni COOKBOOK (options) | |
knife spork promote ENVIRONMENT COOKBOOK (options) | |
knife spork role create ROLE (options) | |
knife spork role delete ROLENAME (options) | |
knife spork role edit ROLENAME (options) | |
knife spork role from file FILENAME (options) | |
knife spork upload [COOKBOOKS...] (options) | |
[~/code/lookout/chef-repo]$ which knife *[master][ruby-1.9.3-p545@global] | |
/Users/bburton/.rvm/gems/ruby-1.9.3-p545@global/bin/knife | |
[~/code/lookout/chef-repo]$ /Users/bburton/.rvm/gems/ruby-1.9.3-p545@global/bin/knife spork *[master][ruby-1.9.3-p545@global] | |
FATAL: Cannot find sub command for: 'spork' | |
Available subcommands: (for details, knife SUB-COMMAND --help) | |
** BLOCK COMMANDS ** | |
knife block | |
knife block list | |
knife block new SERVERNAME | |
knife block use SERVERNAME | |
** BOOTSTRAP COMMANDS ** | |
knife bootstrap FQDN (options) | |
<<snip>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/code/lookout/chef-repo]$ bundle exec knife spork *[master][ruby-1.9.3-p545@global] | |
FATAL: Cannot find sub command for: 'spork' | |
Available subcommands: (for details, knife SUB-COMMAND --help) | |
** BLOCK COMMANDS ** | |
knife block | |
knife block list | |
knife block new SERVERNAME | |
knife block use SERVERNAME | |
** BOOTSTRAP COMMANDS ** | |
knife bootstrap FQDN (options) | |
** CLIENT COMMANDS ** | |
knife client bulk delete REGEX (options) | |
knife client create CLIENT (options) | |
knife client delete CLIENT (options) | |
knife client edit CLIENT (options) | |
knife client list (options) | |
knife client reregister CLIENT (options) | |
knife client show CLIENT (options) | |
** CONFIGURE COMMANDS ** | |
knife configure (options) | |
knife configure client DIRECTORY | |
** COOKBOOK COMMANDS ** | |
knife cookbook bulk delete REGEX (options) | |
knife cookbook create COOKBOOK (options) | |
knife cookbook create_specs COOKBOOK (options) | |
knife cookbook delete COOKBOOK VERSION (options) | |
knife cookbook download COOKBOOK [VERSION] (options) | |
knife cookbook list (options) | |
knife cookbook metadata COOKBOOK (options) | |
knife cookbook metadata from FILE (options) | |
knife cookbook show COOKBOOK [VERSION] [PART] [FILENAME] (options) | |
knife cookbook test [COOKBOOKS...] (options) | |
knife cookbook upload [COOKBOOKS...] (options) | |
** COOKBOOK SITE COMMANDS ** | |
knife cookbook site download COOKBOOK [VERSION] (options) | |
knife cookbook site install COOKBOOK [VERSION] (options) | |
knife cookbook site list (options) | |
knife cookbook site search QUERY (options) | |
knife cookbook site share COOKBOOK CATEGORY (options) | |
knife cookbook site show COOKBOOK [VERSION] (options) | |
knife cookbook site unshare COOKBOOK | |
** DATA BAG COMMANDS ** | |
knife data bag create BAG [ITEM] (options) | |
knife data bag delete BAG [ITEM] (options) | |
knife data bag edit BAG ITEM (options) | |
knife data bag from file BAG FILE|FOLDER [FILE|FOLDER..] (options) | |
knife data bag list (options) | |
knife data bag show BAG [ITEM] (options) | |
** ENVIRONMENT COMMANDS ** | |
knife environment create ENVIRONMENT (options) | |
knife environment delete ENVIRONMENT (options) | |
knife environment edit ENVIRONMENT (options) | |
knife environment from file FILE [FILE..] (options) | |
knife environment list (options) | |
knife environment show ENVIRONMENT (options) | |
** EXEC COMMANDS ** | |
knife exec [SCRIPT] (options) | |
** HELP COMMANDS ** | |
knife help [list|TOPIC] | |
** INDEX COMMANDS ** | |
knife index rebuild (options) | |
** KNIFE COMMANDS ** | |
Usage: /Users/bburton/.rvm/gems/ruby-1.9.3-p545@global/bin/knife (options) |
fujin
commented
May 16, 2014
- bundle show knife-spork
- grep knife-spork Gemfile.*
- don't use RVM, use chruby or rbenv
- use ChefDK on supported platforms to install chef+berks+tk and friends instead of shaving the yak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment