Skip to content

Instantly share code, notes, and snippets.

@vinyar
Last active August 26, 2015 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinyar/254241e253fc0c7cf174 to your computer and use it in GitHub Desktop.
Save vinyar/254241e253fc0c7cf174 to your computer and use it in GitHub Desktop.
chef-shell output
alex was here
Last login: Mon Aug 17 17:51:24 on ttys004
alexvinyar@seavinyar02 ~ $ chef-shell
loading configuration: none (standalone session)
Session type: standalone
Loading.......done.
This is the chef-shell.
Chef Version: 12.3.0
http://www.chef.io/
http://docs.chef.io/
run `help' for help, `exit' or ^D to quit.
Ohai2u alexvinyar@!
chef > attributes_mode
chef:attributes > default['dd_tools']['dd_salesforce']['binaries']['ant-salesforce'] = {
chef:attributes > 'name' => 'ant-salesforce.jar',
chef:attributes > 'location' => 'lib',
chef:attributes > 'artifactory_loc' => 'salesforce',
chef:attributes > 'tool' => 'ant'
chef:attributes ?> }
=> {"name"=>"ant-salesforce.jar", "location"=>"lib", "artifactory_loc"=>"salesforce", "tool"=>"ant"}
chef:attributes >
chef:attributes >
chef:attributes > default['dd_tools']['dd_salesforce']['binaries']['ant-jar'] = {
chef:attributes > 'name' => 'ant-jar.jar',
chef:attributes > 'location' => 'lib',
chef:attributes > 'artifactory_loc' => 'salesforce',
chef:attributes > 'tool' => 'ant'
chef:attributes ?> }
=> {"name"=>"ant-jar.jar", "location"=>"lib", "artifactory_loc"=>"salesforce", "tool"=>"ant"}
chef:attributes >
chef:attributes >
chef:attributes >
chef:attributes > node['dd_tools']['dd_salesforce']['binaries']
=> {"ant-salesforce"=>{"name"=>"ant-salesforce.jar", "location"=>"lib", "artifactory_loc"=>"salesforce", "tool"=>"ant"}, "ant-jar"=>{"name"=>"ant-jar.jar", "location"=>"lib", "artifactory_loc"=>"salesforce", "tool"=>"ant"}}
chef:attributes > node['dd_tools']['dd_salesforce']['binaries'].ant-salesforce
NoMethodError: Undefined method or attribute `ant' on `node'
from /opt/chefdk/embedded/apps/chef/lib/chef/node/immutable_collections.rb:174:in `method_missing'
from (irb#1):19
chef:attributes > node['dd_tools']['dd_salesforce']['binaries']^Cnt-salesforce
chef:attributes > node['dd_tools']['dd_salesforce']['binaries']['ant-salesforce']
=> {"name"=>"ant-salesforce.jar", "location"=>"lib", "artifactory_loc"=>"salesforce", "tool"=>"ant"}
chef:attributes > node['dd_tools']['dd_salesforce']['binaries']['ant-jai']
=> nil
chef:attributes > node['dd_tools']['dd_salesforce']['binaries']['ant-jar']
=> {"name"=>"ant-jar.jar", "location"=>"lib", "artifactory_loc"=>"salesforce", "tool"=>"ant"}
chef:attributes > node['dd_tools']['dd_salesforce']['binaries']['ant-jar']
=> {"name"=>"ant-jar.jar", "location"=>"lib", "artifactory_loc"=>"salesforce", "tool"=>"ant"}
chef:attributes > exit
efatal: No live threads left. Deadlock?
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/ext/multi-irb.rb:231:in `stop'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/ext/multi-irb.rb:231:in `irb'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/cmd/subirb.rb:19:in `execute'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/cmd/nop.rb:20:in `execute'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/extend-command.rb:164:in `irb'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/extend-command.rb:167:in `irb'
from /opt/chefdk/embedded/apps/chef/lib/chef/shell/ext.rb:64:in `find_or_create_session_for'
from /opt/chefdk/embedded/apps/chef/lib/chef/shell/ext.rb:228:in `attributes_mode'
from (irb):1:in `irb_binding'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/workspace.rb:86:in `eval'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/workspace.rb:86:in `evaluate'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/ext/tracer.rb:64:in `evaluate'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/context.rb:380:in `evaluate'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb.rb:492:in `block (2 levels) in eval_input'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb.rb:624:in `signal_status'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb.rb:489:in `block in eval_input'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/ruby-lex.rb:247:in `block (2 levels) in each_top_level_statement'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/ruby-lex.rb:233:in `loop'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/ruby-lex.rb:233:in `block in each_top_level_statement'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/ruby-lex.rb:232:in `catch'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb/ruby-lex.rb:232:in `each_top_level_statement'
from /opt/chefdk/embedded/lib/ruby/2.1.0/irb.rb:488:in `eval_input'
from /opt/chefdk/embedded/apps/chef/lib/chef/shell.rb:76:in `block in start'
from /opt/chefdk/embedded/apps/chef/lib/chef/shell.rb:75:in `catch'
from /opt/chefdk/embedded/apps/chef/lib/chef/shell.rb:75:in `start'
from /opt/chefdk/embedded/apps/chef/bin/chef-shell:37:in `<top (required)>'
from /usr/bin/chef-shell:51:in `load'
from /usr/bin/chef-shell:51:in `<main>'Maybe IRB bug!
chef > exit
alexvinyar@seavinyar02 ~ $ cd Documents/Clients/ge
alexvinyar@seavinyar02 ~/Documents/Clients/ge $ ll
total 3328
drwxr-xr-x 27 alexvinyar staff 918B Nov 14 2014 Documents
-rw-r--r-- 1 alexvinyar staff 964B Jun 11 2014 Salims_gem.txt
-rwxrwxrwx 1 alexvinyar staff 1.4K Nov 20 2013 Seth_vargo_sampe_spec.rb
-rwxrwxrwx 1 alexvinyar staff 1.4K Nov 19 2013 Seth_vargo_sample_spec.rb
-rwxrwxrwx 1 alexvinyar staff 415B Nov 20 2013 Seth_vargo_sample_spec_library.rb
-rwxrwxrwx 1 alexvinyar staff 39K Dec 5 2013 TestingTypes.xlsx
-rwxrwxrwx 1 alexvinyar staff 1.6M Dec 11 2013 Windows Basics.ppt
drwxr-xr-x 15 alexvinyar staff 510B Nov 14 2014 bugs
drwxr-xr-x 95 alexvinyar staff 3.2K Feb 13 2015 cookbooks
drwxr-xr-x 8 alexvinyar staff 272B Dec 26 2014 cookbooks_all
drwxr-xr-x 17 alexvinyar staff 578B Aug 1 2014 deliverance_cookbooks
drwxr-xr-x 8 alexvinyar staff 272B Jun 11 2014 roles
drwxr-xr-x 5 alexvinyar staff 170B Nov 14 2014 serverspec
-rwxrwxrwx 1 alexvinyar staff 20B Nov 6 2013 set_vag_debug.cmd
alexvinyar@seavinyar02 ~/Documents/Clients/ge $ cd cookbooks
alexvinyar@seavinyar02 ~/Documents/Clients/ge/cookbooks $ ll
total 40
lrwxr-xr-x 1 alexvinyar staff 39B Mar 14 2014 ad -> ../../../Projects/ad_demo/cookbooks/ad/
drwxr-xr-x 13 alexvinyar staff 442B Nov 14 2014 apt
drwxr-xr-x 14 alexvinyar staff 476B Nov 14 2014 are_we_in_compliance
drwxr-xr-x 33 alexvinyar staff 1.1K Oct 14 2014 ark
drwxr-xr-x 21 alexvinyar staff 714B Nov 14 2014 auditpolicy-4-demo
drwxr-xr-x 14 alexvinyar staff 476B Nov 14 2014 auth_unnamed
drwxr-xr-x 13 alexvinyar staff 442B Nov 14 2014 authentication
drwxr-xr-x 13 alexvinyar staff 442B Nov 14 2014 authorization
drwxr-xr-x 13 alexvinyar staff 442B Nov 14 2014 authpolicy
drwxr-xr-x 12 alexvinyar staff 408B Oct 14 2014 bluepill
drwxr-xr-x 10 alexvinyar staff 340B Oct 14 2014 build-essential
drwxr-xr-x 30 alexvinyar staff 1.0K Oct 14 2014 chef-client
lrwxr-xr-x 1 alexvinyar staff 39B Mar 18 2014 chef-dev-workstation -> ../../../Projects/chef-dev-workstation/
drwxr-xr-x 12 alexvinyar staff 408B Oct 14 2014 chef_handler
drwxr-xr-x 7 alexvinyar staff 238B Oct 14 2014 cisco-cloud-automation-0.1.0
drwxr-xr-x 13 alexvinyar staff 442B Nov 14 2014 coding_development
drwxr-xr-x 20 alexvinyar staff 680B Oct 14 2014 cron
drwxr-xr-x 12 alexvinyar staff 408B Oct 14 2014 daemontools
drwxr-xr-x 10 alexvinyar staff 340B Nov 14 2014 dmg
drwxr-xr-x 13 alexvinyar staff 442B Nov 14 2014 encryption
drwxr-xr-x 13 alexvinyar staff 442B Nov 14 2014 eventlog
drwxr-xr-x 12 alexvinyar staff 408B Feb 13 2015 for_julian
drwxr-xr-x 24 alexvinyar staff 816B Oct 14 2014 ge_bmc_patrol
drwxr-xr-x 21 alexvinyar staff 714B Oct 14 2014 ge_business
drwxr-xr-x 26 alexvinyar staff 884B Oct 14 2014 ge_ca_unab
drwxr-xr-x 34 alexvinyar staff 1.1K Oct 14 2014 ge_centrify
drwxr-xr-x 23 alexvinyar staff 782B Oct 14 2014 ge_centrify_original
drwxr-xr-x 20 alexvinyar staff 680B Oct 14 2014 ge_chef_vault
drwxr-xr-x 7 alexvinyar staff 238B Oct 14 2014 ge_cisco_secure_os-0.1.0
drwxr-xr-x 28 alexvinyar staff 952B Oct 14 2014 ge_digital_guardian
drwxr-xr-x 23 alexvinyar staff 782B Oct 14 2014 ge_iptables
drwxr-xr-x 31 alexvinyar staff 1.0K Oct 14 2014 ge_japan_deliv_test
drwxr-xr-x 28 alexvinyar staff 952B Oct 14 2014 ge_japan_deliv_test_pre_git
drwxr-xr-x 29 alexvinyar staff 986B Oct 13 2014 ge_mcafee
drwxr-xr-x 34 alexvinyar staff 1.1K Oct 14 2014 ge_netbackup
drwxr-xr-x 31 alexvinyar staff 1.0K Oct 14 2014 ge_netbackup-trash
drwxr-xr-x 33 alexvinyar staff 1.1K Oct 14 2014 ge_opsware_agent
drwxr-xr-x 20 alexvinyar staff 680B Oct 14 2014 ge_organisation
drwxr-xr-x 26 alexvinyar staff 884B Oct 14 2014 ge_proxy
drwxr-xr-x 24 alexvinyar staff 816B Oct 14 2014 ge_reboot_handler
drwxr-xr-x 28 alexvinyar staff 952B Mar 12 02:51 ge_registry_framework
drwxr-xr-x 18 alexvinyar staff 612B Oct 14 2014 ge_registry_framework-20140512.154125.709093
drwxr-xr-x 24 alexvinyar staff 816B Oct 14 2014 ge_registry_framework_2
drwxr-xr-x 24 alexvinyar staff 816B Oct 13 2014 ge_role_secure_os
drwxr-xr-x 28 alexvinyar staff 952B Oct 14 2014 ge_role_win_secureos_dmz
drwxr-xr-x 23 alexvinyar staff 782B Oct 14 2014 ge_splunk
drwxr-xr-x 33 alexvinyar staff 1.1K Oct 14 2014 ge_win_auditpolicy
drwxr-xr-x 3 alexvinyar staff 102B Jun 30 2014 ge_win_auditpolicy-original
drwxr-xr-x 23 alexvinyar staff 782B Nov 14 2014 ge_win_auditpolicy_0.3.0
drwxr-xr-x 15 alexvinyar staff 510B Nov 14 2014 ge_win_gpo
drwxr-xr-x 26 alexvinyar staff 884B Oct 14 2014 ge_win_grpmbr
drwxr-xr-x 31 alexvinyar staff 1.0K Oct 14 2014 ge_win_secedit
drwxr-xr-x 15 alexvinyar staff 510B Nov 14 2014 ge_win_secedit_0.3.0
drwxr-xr-x 12 alexvinyar staff 408B Oct 14 2014 ge_win_secedit_original
drwxr-xr-x 33 alexvinyar staff 1.1K Oct 14 2014 ge_win_services
drwxr-xr-x 27 alexvinyar staff 918B Nov 14 2014 ge_win_services_0.0.1
drwxr-xr-x 4 alexvinyar staff 136B Oct 14 2014 ge_win_services_install
drwxr-xr-x 24 alexvinyar staff 816B Oct 14 2014 ge_win_xenapp
drwxr-xr-x 21 alexvinyar staff 714B Oct 14 2014 ge_yum_repos
drwxr-xr-x 13 alexvinyar staff 442B Nov 14 2014 interface_config
drwxr-xr-x 3 alexvinyar staff 102B Nov 14 2014 jan_13_lukaz_secure_os
drwxr-xr-x 27 alexvinyar staff 918B Nov 14 2014 jan_21_lukaz_secure_os
drwxr-xr-x 7 alexvinyar staff 238B Mar 29 2014 library
lrwxr-xr-x 1 alexvinyar staff 17B Jun 4 2014 line -> ../../../git/line
drwxr-xr-x 4 alexvinyar staff 136B Oct 14 2014 line-cookbook
drwxr-xr-x 13 alexvinyar staff 442B Nov 14 2014 logging
drwxr-xr-x 11 alexvinyar staff 374B Nov 14 2014 logrotate
drwxr-xr-x 19 alexvinyar staff 646B Nov 14 2014 minitest-handler
lrwxr-xr-x 1 alexvinyar staff 28B Jun 11 2014 omnibus_updater -> ../../../git/omnibus_updater
drwxr-xr-x 4 alexvinyar staff 136B Oct 14 2014 pipeline
drwxr-xr-x 10 alexvinyar staff 340B Oct 14 2014 rsyslog
drwxr-xr-x 12 alexvinyar staff 408B Oct 14 2014 runit
drwxr-xr-x 13 alexvinyar staff 442B Nov 14 2014 serverspec
drwxr-xr-x 13 alexvinyar staff 442B Nov 14 2014 service_management
drwxr-xr-x 18 alexvinyar staff 612B Nov 14 2014 services
drwxr-xr-x 15 alexvinyar staff 510B Nov 14 2014 systemprep
drwxr-xr-x 11 alexvinyar staff 374B Nov 14 2014 test-kitchen
drwxr-xr-x 14 alexvinyar staff 476B Nov 14 2014 test_del
-rw-r--r-- 1 alexvinyar staff 0B Oct 14 2014 trash
drwxr-xr-x 11 alexvinyar staff 374B Nov 14 2014 treasury_winsecureos
drwxr-xr-x 15 alexvinyar staff 510B Oct 14 2014 ucspi-tcp
drwxr-xr-x 13 alexvinyar staff 442B Nov 14 2014 vagrant
drwxr-xr-x 14 alexvinyar staff 476B Nov 14 2014 virtualbox
lrwxr-xr-x 1 alexvinyar staff 31B Jul 18 2014 win_lang_pack -> ../../../Projects/win_lang_pack
drwxr-xr-x 28 alexvinyar staff 952B Oct 14 2014 win_test
drwxr-xr-x 18 alexvinyar staff 612B Oct 14 2014 windows
drwxr-xr-x 14 alexvinyar staff 476B Oct 14 2014 windows_ad
drwxr-xr-x 14 alexvinyar staff 476B Oct 14 2014 windows_ad_wrapper
drwxr-xr-x 13 alexvinyar staff 442B Nov 14 2014 winsecureos
drwxr-xr-x 20 alexvinyar staff 680B Nov 14 2014 wsus
drwxr-xr-x 25 alexvinyar staff 850B Oct 14 2014 yum
drwxr-xr-x 15 alexvinyar staff 510B Oct 14 2014 yum-epel
alexvinyar@seavinyar02 ~/Documents/Clients/ge/cookbooks $ s .
alexvinyar@seavinyar02 ~/Documents/Clients/ge/cookbooks $ cd ...
alexvinyar@seavinyar02 ~/Documents/Clients $ ll
total 8
drwxr-xr-x 3 alexvinyar staff 102B Aug 12 11:13 Alaska
drwxr-xr-x 6 alexvinyar staff 204B Apr 8 11:47 Bloomberg
drwxr-xr-x 35 alexvinyar staff 1.2K Jun 26 14:57 Bridgewater
drwxr-xr-x 8 alexvinyar staff 272B Apr 29 15:06 CenturyLink
drwxr-xr-x 17 alexvinyar staff 578B Aug 17 16:20 DeltaDental
drwxr-xr-x 7 alexvinyar staff 238B Aug 6 16:55 Expeditors
drwxr-xr-x 6 alexvinyar staff 204B Mar 10 05:09 HP_Singapore
drwxr-xr-x 4 alexvinyar staff 136B Feb 17 2015 Microsoft_dynamics
drwxrwxr-x 8 alexvinyar staff 272B Jun 3 12:09 Yahoo
drwxr-xr-x 31 alexvinyar staff 1.0K Aug 25 11:25 current
drwxr-xr-x 18 alexvinyar staff 612B Dec 22 2014 ge
drwxr-xr-x 24 alexvinyar staff 816B Aug 13 2014 ge_from_pc
drwxr-xr-x 5 alexvinyar staff 170B Jul 28 2014 ge_japan
-rw-r-----@ 1 alexvinyar staff 1.2K Feb 11 2015 gist11043825e5b9fe0aa3ec-d0da2ae5e0c69add9571340ff8db8dba25f85117.tar.gz
alexvinyar@seavinyar02 ~/Documents/Clients $ ll
total 8
drwxr-xr-x 3 alexvinyar staff 102B Aug 12 11:13 Alaska
drwxr-xr-x 6 alexvinyar staff 204B Apr 8 11:47 Bloomberg
drwxr-xr-x 35 alexvinyar staff 1.2K Jun 26 14:57 Bridgewater
drwxr-xr-x 8 alexvinyar staff 272B Apr 29 15:06 CenturyLink
drwxr-xr-x 17 alexvinyar staff 578B Aug 17 16:20 DeltaDental
drwxr-xr-x 7 alexvinyar staff 238B Aug 6 16:55 Expeditors
drwxr-xr-x 6 alexvinyar staff 204B Mar 10 05:09 HP_Singapore
drwxr-xr-x 4 alexvinyar staff 136B Feb 17 2015 Microsoft_dynamics
drwxrwxr-x 8 alexvinyar staff 272B Jun 3 12:09 Yahoo
drwxr-xr-x 31 alexvinyar staff 1.0K Aug 25 11:25 current
drwxr-xr-x 18 alexvinyar staff 612B Dec 22 2014 ge
drwxr-xr-x 24 alexvinyar staff 816B Aug 13 2014 ge_from_pc
drwxr-xr-x 5 alexvinyar staff 170B Jul 28 2014 ge_japan
-rw-r-----@ 1 alexvinyar staff 1.2K Feb 11 2015 gist11043825e5b9fe0aa3ec-d0da2ae5e0c69add9571340ff8db8dba25f85117.tar.gz
alexvinyar@seavinyar02 ~/Documents/Clients $ mv current Samtec
alexvinyar@seavinyar02 ~/Documents/Clients $ ll
total 8
drwxr-xr-x 3 alexvinyar staff 102B Aug 12 11:13 Alaska
drwxr-xr-x 6 alexvinyar staff 204B Apr 8 11:47 Bloomberg
drwxr-xr-x 35 alexvinyar staff 1.2K Jun 26 14:57 Bridgewater
drwxr-xr-x 8 alexvinyar staff 272B Apr 29 15:06 CenturyLink
drwxr-xr-x 17 alexvinyar staff 578B Aug 17 16:20 DeltaDental
drwxr-xr-x 7 alexvinyar staff 238B Aug 6 16:55 Expeditors
drwxr-xr-x 6 alexvinyar staff 204B Mar 10 05:09 HP_Singapore
drwxr-xr-x 4 alexvinyar staff 136B Feb 17 2015 Microsoft_dynamics
drwxr-xr-x 31 alexvinyar staff 1.0K Aug 25 11:25 Samtec
drwxrwxr-x 8 alexvinyar staff 272B Jun 3 12:09 Yahoo
drwxr-xr-x 18 alexvinyar staff 612B Dec 22 2014 ge
drwxr-xr-x 24 alexvinyar staff 816B Aug 13 2014 ge_from_pc
drwxr-xr-x 5 alexvinyar staff 170B Jul 28 2014 ge_japan
-rw-r-----@ 1 alexvinyar staff 1.2K Feb 11 2015 gist11043825e5b9fe0aa3ec-d0da2ae5e0c69add9571340ff8db8dba25f85117.tar.gz
alexvinyar@seavinyar02 ~/Documents/Clients $ cd Samtec
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec $ ll
total 504
drwxr-xr-x 15 alexvinyar staff 510B Jul 9 07:56 chef-repo
-rwxr-xr-x 1 alexvinyar staff 81B Aug 29 2014 chef-repository.sublime-project
-rwxr-xr-x 1 alexvinyar staff 50K Aug 25 11:26 chef-repository.sublime-workspace
drwxr-xr-x 14 alexvinyar staff 476B Jul 24 15:59 com
-rwxr-xr-x 1 alexvinyar staff 75B Feb 9 2015 com-cookbook.sublime-project
-rwxr-xr-x 1 alexvinyar staff 11K Aug 10 08:12 com-cookbook.sublime-workspace
drwxr-xr-x 15 alexvinyar staff 510B Jun 5 07:58 devops
-rwxr-xr-x 1 alexvinyar staff 50B May 21 07:36 devops-cookbook.sublime-project
-rwxr-xr-x 1 alexvinyar staff 9.4K Jun 8 07:33 devops-cookbook.sublime-workspace
-rwxr-xr-x 1 alexvinyar staff 684B Aug 18 2014 encrypted_data_bag_secret
drwxr-xr-x 24 alexvinyar staff 816B Jan 19 2015 nsb
-rwxr-xr-x 1 alexvinyar staff 75B Aug 28 2014 nsb-cookbook.sublime-project
-rwxr-xr-x 1 alexvinyar staff 27K Jul 24 07:44 nsb-cookbook.sublime-workspace
drwxr-xr-x 14 alexvinyar staff 476B Nov 21 2014 omm
-rwxr-xr-x 1 alexvinyar staff 75B Aug 27 2014 omm-cookbook.sublime-project
-rwxr-xr-x 1 alexvinyar staff 8.2K May 1 13:46 omm-cookbook.sublime-workspace
drwxr-xr-x 14 alexvinyar staff 476B Oct 31 2014 rmutility
-rwxr-xr-x 1 alexvinyar staff 81B Sep 22 2014 rmutility-cookbook.sublime-project
-rwxr-xr-x 1 alexvinyar staff 13K May 22 14:49 rmutility-cookbook.sublime-workspace
drwxr-xr-x 23 alexvinyar staff 782B Sep 11 2014 skunkworks
-rwxr-xr-x 1 alexvinyar staff 82B Sep 11 2014 skunkworks-cookbook.sublime-project
-rwxr-xr-x 1 alexvinyar staff 4.0K Sep 16 2014 skunkworks-cookbook.sublime-workspace
drwxr-xr-x 23 alexvinyar staff 782B Feb 23 2015 winbase
-rwxr-xr-x 1 alexvinyar staff 79B Aug 28 2014 winbase-cookbook.sublime-project
-rwxr-xr-x 1 alexvinyar staff 53K Aug 11 08:42 winbase-cookbook.sublime-workspace
drwxr-xr-x 22 alexvinyar staff 748B Feb 24 16:12 winweb
-rwxr-xr-x 1 alexvinyar staff 78B Sep 3 2014 winweb-cookbook.sublime-project
-rwxr-xr-x 1 alexvinyar staff 18K Jul 22 07:29 winweb-cookbook.sublime-workspace
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec $ chef generate cookbook rspec
Compiling Cookbooks...
Recipe: code_generator::cookbook
* directory[/Users/alexvinyar/Documents/Clients/Samtec/rspec] action create
- create new directory /Users/alexvinyar/Documents/Clients/Samtec/rspec
* template[/Users/alexvinyar/Documents/Clients/Samtec/rspec/metadata.rb] action create_if_missing
- create new file /Users/alexvinyar/Documents/Clients/Samtec/rspec/metadata.rb
- update content in file /Users/alexvinyar/Documents/Clients/Samtec/rspec/metadata.rb from none to 6f333c
(diff output suppressed by config)
* template[/Users/alexvinyar/Documents/Clients/Samtec/rspec/README.md] action create_if_missing
- create new file /Users/alexvinyar/Documents/Clients/Samtec/rspec/README.md
- update content in file /Users/alexvinyar/Documents/Clients/Samtec/rspec/README.md from none to 3e076b
(diff output suppressed by config)
* cookbook_file[/Users/alexvinyar/Documents/Clients/Samtec/rspec/chefignore] action create
- create new file /Users/alexvinyar/Documents/Clients/Samtec/rspec/chefignore
- update content in file /Users/alexvinyar/Documents/Clients/Samtec/rspec/chefignore from none to 9727b1
(diff output suppressed by config)
* cookbook_file[/Users/alexvinyar/Documents/Clients/Samtec/rspec/Berksfile] action create_if_missing
- create new file /Users/alexvinyar/Documents/Clients/Samtec/rspec/Berksfile
- update content in file /Users/alexvinyar/Documents/Clients/Samtec/rspec/Berksfile from none to 5ec92e
(diff output suppressed by config)
* template[/Users/alexvinyar/Documents/Clients/Samtec/rspec/.kitchen.yml] action create_if_missing
- create new file /Users/alexvinyar/Documents/Clients/Samtec/rspec/.kitchen.yml
- update content in file /Users/alexvinyar/Documents/Clients/Samtec/rspec/.kitchen.yml from none to 8afaa2
(diff output suppressed by config)
* directory[/Users/alexvinyar/Documents/Clients/Samtec/rspec/test/integration/default/serverspec] action create
- create new directory /Users/alexvinyar/Documents/Clients/Samtec/rspec/test/integration/default/serverspec
* directory[/Users/alexvinyar/Documents/Clients/Samtec/rspec/test/integration/helpers/serverspec] action create
- create new directory /Users/alexvinyar/Documents/Clients/Samtec/rspec/test/integration/helpers/serverspec
* cookbook_file[/Users/alexvinyar/Documents/Clients/Samtec/rspec/test/integration/helpers/serverspec/spec_helper.rb] action create_if_missing
- create new file /Users/alexvinyar/Documents/Clients/Samtec/rspec/test/integration/helpers/serverspec/spec_helper.rb
- update content in file /Users/alexvinyar/Documents/Clients/Samtec/rspec/test/integration/helpers/serverspec/spec_helper.rb from none to 482d33
(diff output suppressed by config)
* template[/Users/alexvinyar/Documents/Clients/Samtec/rspec/test/integration/default/serverspec/default_spec.rb] action create_if_missing
- create new file /Users/alexvinyar/Documents/Clients/Samtec/rspec/test/integration/default/serverspec/default_spec.rb
- update content in file /Users/alexvinyar/Documents/Clients/Samtec/rspec/test/integration/default/serverspec/default_spec.rb from none to 9929cc
(diff output suppressed by config)
* directory[/Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/unit/recipes] action create
- create new directory /Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/unit/recipes
* cookbook_file[/Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/spec_helper.rb] action create_if_missing
- create new file /Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/spec_helper.rb
- update content in file /Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/spec_helper.rb from none to 945e09
(diff output suppressed by config)
* template[/Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/unit/recipes/default_spec.rb] action create_if_missing
- create new file /Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/unit/recipes/default_spec.rb
- update content in file /Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/unit/recipes/default_spec.rb from none to e7a692
(diff output suppressed by config)
* directory[/Users/alexvinyar/Documents/Clients/Samtec/rspec/recipes] action create
- create new directory /Users/alexvinyar/Documents/Clients/Samtec/rspec/recipes
* template[/Users/alexvinyar/Documents/Clients/Samtec/rspec/recipes/default.rb] action create_if_missing
- create new file /Users/alexvinyar/Documents/Clients/Samtec/rspec/recipes/default.rb
- update content in file /Users/alexvinyar/Documents/Clients/Samtec/rspec/recipes/default.rb from none to 4adddb
(diff output suppressed by config)
* execute[initialize-git] action run
- execute git init .
* cookbook_file[/Users/alexvinyar/Documents/Clients/Samtec/rspec/.gitignore] action create
- create new file /Users/alexvinyar/Documents/Clients/Samtec/rspec/.gitignore
- update content in file /Users/alexvinyar/Documents/Clients/Samtec/rspec/.gitignore from none to dd37b2
(diff output suppressed by config)
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec $ cd r
cd: no such file or directory: r
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec $ cd rspec
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ ll
total 32
-rw-r--r-- 1 alexvinyar staff 47B Aug 25 12:53 Berksfile
-rw-r--r-- 1 alexvinyar staff 53B Aug 25 12:53 README.md
-rw-r--r-- 1 alexvinyar staff 974B Aug 25 12:53 chefignore
-rw-r--r-- 1 alexvinyar staff 195B Aug 25 12:53 metadata.rb
drwxr-xr-x 3 alexvinyar staff 102B Aug 25 12:53 recipes
drwxr-xr-x 4 alexvinyar staff 136B Aug 25 12:53 spec
drwxr-xr-x 3 alexvinyar staff 102B Aug 25 12:53 test
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ s .
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ s ../
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ rspec
zsh: correct rspec to spec [nyae]? n
zsh: command not found: rspec
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ eval "$(chef shell-init bash)"
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ rspec
F
Failures:
1) rspec::default When all attributes are default, on an unspecified platform some name
Failure/Error: stub_command(reboot_pending?).and_return(true)
NoMethodError:
undefined method `reboot_pending?' for #<RSpec::ExampleGroups::RspecDefault::WhenAllAttributesAreDefaultOnAnUnspecifiedPlatform:0x007f890f5728b8>
# ./spec/unit/recipes/default_spec.rb:14:in `block (3 levels) in <top (required)>'
Finished in 3.6 seconds (files took 5.6 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./spec/unit/recipes/default_spec.rb:22 # rspec::default When all attributes are default, on an unspecified platform some name
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ rspec
F
Failures:
1) rspec::default When all attributes are default some name
Failure/Error: stub_command(reboot_pending?).and_return(true)
NoMethodError:
undefined method `reboot_pending?' for #<RSpec::ExampleGroups::RspecDefault::WhenAllAttributesAreDefault:0x007f881b018ee8>
# ./spec/unit/recipes/default_spec.rb:13:in `block (3 levels) in <top (required)>'
Finished in 0.08393 seconds (files took 5.07 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./spec/unit/recipes/default_spec.rb:21 # rspec::default When all attributes are default some name
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ rspec
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:648:in `method_missing': `described_recipe` is not available on an example group (e.g. a `describe` or `context` block). It is only available from within individual examples (e.g. `it` blocks) or from constructs that run in the scope of an example (e.g. `before`, `let`, etc). (RSpec::Core::ExampleGroup::WrongScopeError)
from /Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/unit/recipes/default_spec.rb:15:in `block (2 levels) in <top (required)>'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:363:in `module_exec'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:363:in `subclass'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:254:in `block in define_example_group_method'
from /Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/unit/recipes/default_spec.rb:10:in `block in <top (required)>'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:363:in `module_exec'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:363:in `subclass'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:254:in `block in define_example_group_method'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/dsl.rb:43:in `block in expose_example_group_alias'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/dsl.rb:82:in `block (2 levels) in expose_example_group_alias_globally'
from /Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/unit/recipes/default_spec.rb:9:in `<top (required)>'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/configuration.rb:1327:in `load'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/configuration.rb:1327:in `block in load_spec_files'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/configuration.rb:1325:in `each'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/configuration.rb:1325:in `load_spec_files'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/runner.rb:102:in `setup'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/runner.rb:88:in `run'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/runner.rb:73:in `run'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/runner.rb:41:in `invoke'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/exe/rspec:4:in `<top (required)>'
from /opt/chefdk/embedded/bin/rspec:23:in `load'
from /opt/chefdk/embedded/bin/rspec:23:in `<main>'
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ rspec
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:648:in `method_missing': `described_recipe` is not available on an example group (e.g. a `describe` or `context` block). It is only available from within individual examples (e.g. `it` blocks) or from constructs that run in the scope of an example (e.g. `before`, `let`, etc). (RSpec::Core::ExampleGroup::WrongScopeError)
from /Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/unit/recipes/default_spec.rb:21:in `block (2 levels) in <top (required)>'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:363:in `module_exec'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:363:in `subclass'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:254:in `block in define_example_group_method'
from /Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/unit/recipes/default_spec.rb:10:in `block in <top (required)>'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:363:in `module_exec'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:363:in `subclass'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/example_group.rb:254:in `block in define_example_group_method'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/dsl.rb:43:in `block in expose_example_group_alias'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/dsl.rb:82:in `block (2 levels) in expose_example_group_alias_globally'
from /Users/alexvinyar/Documents/Clients/Samtec/rspec/spec/unit/recipes/default_spec.rb:9:in `<top (required)>'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/configuration.rb:1327:in `load'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/configuration.rb:1327:in `block in load_spec_files'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/configuration.rb:1325:in `each'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/configuration.rb:1325:in `load_spec_files'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/runner.rb:102:in `setup'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/runner.rb:88:in `run'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/runner.rb:73:in `run'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/lib/rspec/core/runner.rb:41:in `invoke'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.0/exe/rspec:4:in `<top (required)>'
from /opt/chefdk/embedded/bin/rspec:23:in `load'
from /opt/chefdk/embedded/bin/rspec:23:in `<main>'
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ rspec
================================================================================
Recipe Compile Error in /var/folders/9r/g1wlns1j29bg0c7b_6fr7b480000gp/T/d20150825-67598-1ho559e/cookbooks/rspec/recipes/default.rb
================================================================================
NoMethodError
-------------
undefined method `[]' for nil:NilClass
Cookbook Trace:
---------------
/var/folders/9r/g1wlns1j29bg0c7b_6fr7b480000gp/T/d20150825-67598-1ho559e/cookbooks/rspec/recipes/default.rb:20:in `block in from_file'
/var/folders/9r/g1wlns1j29bg0c7b_6fr7b480000gp/T/d20150825-67598-1ho559e/cookbooks/rspec/recipes/default.rb:18:in `from_file'
Relevant File Content:
----------------------
/var/folders/9r/g1wlns1j29bg0c7b_6fr7b480000gp/T/d20150825-67598-1ho559e/cookbooks/rspec/recipes/default.rb:
13: #
14: # All rights reserved - Do Not Redistribute
15: #
16: # Ensure that the base local admin group contains only the core admins
17: #
18: group "Administrators" do
19: action :modify
20>> members node[:winbase][:admin_group]
21: append false
22: not_if { reboot_pending? }
23: end
24:
F
Failures:
1) rspec::default When all attributes are defaultwindo some name
Failure/Error: runner.converge(described_recipe)
NoMethodError:
undefined method `[]' for nil:NilClass
# /var/folders/9r/g1wlns1j29bg0c7b_6fr7b480000gp/T/d20150825-67598-1ho559e/cookbooks/rspec/recipes/default.rb:20:in `block in from_file'
# /var/folders/9r/g1wlns1j29bg0c7b_6fr7b480000gp/T/d20150825-67598-1ho559e/cookbooks/rspec/recipes/default.rb:18:in `from_file'
# ./spec/unit/recipes/default_spec.rb:19:in `block (3 levels) in <top (required)>'
# ./spec/unit/recipes/default_spec.rb:24:in `block (3 levels) in <top (required)>'
Finished in 0.25617 seconds (files took 5.07 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./spec/unit/recipes/default_spec.rb:23 # rspec::default When all attributes are defaultwindo some name
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ rspec
F
Failures:
1) rspec::default When all attributes are defaultwindo some name
Failure/Error: expect(chef_run).to create_group "Administrators"
expected "group[Administrators]" actions [:modify] to include :create
# ./spec/unit/recipes/default_spec.rb:24:in `block (3 levels) in <top (required)>'
Finished in 0.28423 seconds (files took 5 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./spec/unit/recipes/default_spec.rb:23 # rspec::default When all attributes are defaultwindo some name
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ rspec
.
Finished in 0.27554 seconds (files took 5.05 seconds to load)
1 example, 0 failures
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ rspec -fd
rspec::default
positive action
some name
negative action
some name
Finished in 0.45452 seconds (files took 5.04 seconds to load)
2 examples, 0 failures
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ cd ..cd ..
cd: string not in pwd: ..cd
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec/rspec (master●)$ cd ..
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec $ s .
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec $ s .
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec $ berks -h
Commands:
berks apply ENVIRONMENT # Apply version locks from Berksfile.lock to a Chef environment
berks contingent COOKBOOK # List all cookbooks that depend on the given cookbook in your Berksfile
berks cookbook NAME [PATH] # Create a skeleton for a new cookbook
berks help [COMMAND] # Describe available commands or one specific command
berks info [COOKBOOK] # Display name, author, copyright, and dependency information about a cookbook
berks init [PATH] # Initialize Berkshelf in the given directory
berks install # Install the cookbooks specified in the Berksfile
berks list # List cookbooks and their dependencies specified by your Berksfile
berks outdated [COOKBOOKS] # List dependencies that have new versions available that satisfy their constraints
berks package [PATH] # Vendor and archive the dependencies of a Berksfile
berks search NAME # Search the remote source for cookbooks matching the partial name
berks shelf SUBCOMMAND # Interact with the cookbook store
berks show [COOKBOOK] # Display the path to a cookbook on disk
berks update [COOKBOOKS] # Update the cookbooks (and dependencies) specified in the Berksfile
berks upload [COOKBOOKS] # Upload the cookbook specified in the Berksfile to the Chef Server
berks vendor [PATH] # Vendor the cookbooks specified by the Berksfile into a directory
berks verify # Perform a quick validation on the contents of your resolved cookbooks
berks version # Display version
berks viz # Visualize the dependency graph
Options:
-c, [--config=PATH] # Path to Berkshelf configuration to use.
-F, [--format=FORMAT] # Output format to use.
# Default: human
-q, [--quiet], [--no-quiet] # Silence all informational output.
-d, [--debug], [--no-debug] # Output debug information
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec $ knife | grep dep
knife deps PATTERN1 [PATTERNn]
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec $ knife | grep deps
knife deps PATTERN1 [PATTERNn]
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec $ knife
ERROR: You need to pass a sub-command (e.g., knife SUB-COMMAND)
Usage: knife sub-command (options)
-s, --server-url URL Chef Server URL
--chef-zero-host HOST Host to start chef-zero on
--chef-zero-port PORT Port (or port range) to start chef-zero on. Port ranges like 1000,1010 or 8889-9999 will try all given ports until one works.
-k, --key KEY API Client Key
--[no-]color Use colored output, defaults to false on Windows, true otherwise
-c, --config CONFIG The configuration file to use
--defaults Accept default values for all questions
-d, --disable-editing Do not open EDITOR, just accept the data as is
-e, --editor EDITOR Set the editor to use for interactive commands
-E, --environment ENVIRONMENT Set the Chef environment (except for in searches, where this will be flagrantly ignored)
-F, --format FORMAT Which format to use for output
--[no-]listen Whether a local mode (-z) server binds to a port
-z, --local-mode Point knife commands at local repository instead of server
-u, --user USER API Client Username
--print-after Show the data after a destructive operation
-V, --verbose More verbose output. Use twice for max verbosity
-v, --version Show chef version
-y, --yes Say yes to all prompts for confirmation
-h, --help Show this message
Available subcommands: (for details, knife SUB-COMMAND --help)
** BOOTSTRAP COMMANDS **
knife bootstrap FQDN (options)
knife bootstrap windows ssh FQDN (options)
knife bootstrap windows winrm 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 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)
** DECRYPT COMMANDS **
knife decrypt VAULT ITEM [VALUES] (options)
** ENCRYPT COMMANDS **
knife encrypt create VAULT ITEM VALUES (options)
knife encrypt delete VAULT ITEM (options)
knife encrypt remove VAULT ITEM VALUES (options)
knife encrypt rotate keys VAULT ITEM (options)
knife encrypt update VAULT ITEM VALUES (options)
** ENVIRONMENT COMMANDS **
knife environment compare [ENVIRONMENT..] (options)
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: /opt/chefdk/bin/knife (options)
** NODE COMMANDS **
knife node bulk delete REGEX (options)
knife node create NODE (options)
knife node delete NODE (options)
knife node edit NODE (options)
knife node environment set NODE ENVIRONMENT
knife node from file FILE (options)
knife node list (options)
knife node run_list add [NODE] [ENTRY[,ENTRY]] (options)
knife node run_list remove [NODE] [ENTRY[,ENTRY]] (options)
knife node run_list set NODE ENTRIES (options)
knife node show NODE (options)
** PATH-BASED COMMANDS **
knife delete [PATTERN1 ... PATTERNn]
knife deps PATTERN1 [PATTERNn]
knife diff PATTERNS
knife download PATTERNS
knife edit [PATTERN1 ... PATTERNn]
knife list [-dfR1p] [PATTERN1 ... PATTERNn]
knife show [PATTERN1 ... PATTERNn]
knife upload PATTERNS
knife xargs [COMMAND]
** RAW COMMANDS **
knife raw REQUEST_PATH
** RECIPE COMMANDS **
knife recipe list [PATTERN]
** ROLE COMMANDS **
knife role bulk delete REGEX (options)
knife role create ROLE (options)
knife role delete ROLE (options)
knife role edit ROLE (options)
knife role env_run_list add [ROLE] [ENVIRONMENT] [ENTRY[,ENTRY]] (options)
knife role env_run_list clear [ROLE] [ENVIRONMENT]
knife role env_run_list remove [ROLE] [ENVIRONMENT] [ENTRIES]
knife role env_run_list replace [ROLE] [ENVIRONMENT] [OLD_ENTRY] [NEW_ENTRY]
knife role env_run_list set [ROLE] [ENVIRONMENT] [ENTRIES]
knife role from file FILE [FILE..] (options)
knife role list (options)
knife role run_list add [ROLE] [ENTRY[,ENTRY]] (options)
knife role run_list clear [ROLE]
knife role run_list remove [ROLE] [ENTRY]
knife role run_list replace [ROLE] [OLD_ENTRY] [NEW_ENTRY]
knife role run_list set [ROLE] [ENTRIES]
knife role show ROLE (options)
** SEARCH COMMANDS **
knife search INDEX QUERY (options)
** SERVE COMMANDS **
knife serve (options)
** SPORK COMMANDS **
knife spork bump COOKBOOK [major|minor|patch|manual]
knife spork check COOKBOOK (options)
knife spork data bag create BAG [ITEM] (options)
knife spork data bag delete BAG [ITEM] (options)
knife spork data bag edit BAG ITEM (options)
knife spork data bag from file BAG FILE|FOLDER [FILE|FOLDER..] (options)
knife spork environment check ENVIRONMENT (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)
** SSH COMMANDS **
knife ssh QUERY COMMAND (options)
** SSL COMMANDS **
knife ssl check [URL] (options)
knife ssl fetch [URL] (options)
** STATUS COMMANDS **
knife status QUERY (options)
** TAG COMMANDS **
knife tag create NODE TAG ...
knife tag delete NODE TAG ...
knife tag list NODE
** USER COMMANDS **
knife user create USER (options)
knife user delete USER (options)
knife user edit USER (options)
knife user list (options)
knife user reregister USER (options)
knife user show USER (options)
** VAULT COMMANDS **
knife vault create VAULT ITEM VALUES (options)
knife vault decrypt VAULT ITEM [VALUES] (options)
knife vault delete VAULT ITEM (options)
knife vault download VAULT ITEM PATH (options)
knife vault edit VAULT ITEM (options)
knife vault refresh VAULT ITEM
knife vault remove VAULT ITEM VALUES (options)
knife vault rotate all keys
knife vault rotate keys VAULT ITEM (options)
knife vault show VAULT ITEM [VALUES] (options)
knife vault update VAULT ITEM VALUES (options)
** WINDOWS COMMANDS **
knife bootstrap windows winrm FQDN (options)
knife bootstrap windows ssh FQDN (options)
knife winrm QUERY COMMAND (options)
** WINRM COMMANDS **
knife winrm QUERY COMMAND (options)
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec $ knife deps -h
knife deps PATTERN1 [PATTERNn]
--chef-repo-path PATH Overrides the location of chef repo. Default is specified by chef_repo_path in the config
-s, --server-url URL Chef Server URL
--chef-zero-host HOST Host to start chef-zero on
--chef-zero-port PORT Port (or port range) to start chef-zero on. Port ranges like 1000,1010 or 8889-9999 will try all given ports until one works.
-k, --key KEY API Client Key
--[no-]color Use colored output, defaults to false on Windows, true otherwise
--concurrency THREADS Maximum number of simultaneous requests to send (default: 10)
-c, --config CONFIG The configuration file to use
--defaults Accept default values for all questions
-d, --disable-editing Do not open EDITOR, just accept the data as is
-e, --editor EDITOR Set the editor to use for interactive commands
-E, --environment ENVIRONMENT Set the Chef environment (except for in searches, where this will be flagrantly ignored)
-F, --format FORMAT Which format to use for output
--[no-]listen Whether a local mode (-z) server binds to a port
-z, --local-mode Point knife commands at local repository instead of server
-u, --user USER API Client Username
--print-after Show the data after a destructive operation
--[no-]recurse List dependencies recursively (default: true). Only works with --tree.
--remote List dependencies on the server instead of the local filesystem
--repo-mode MODE Specifies the local repository layout. Values: static, everything, hosted_everything. Default: everything/hosted_everything
--tree Show dependencies in a visual tree. May show duplicates.
-V, --verbose More verbose output. Use twice for max verbosity
-v, --version Show chef version
-y, --yes Say yes to all prompts for confirmation
-h, --help Show this message
alexvinyar@seavinyar02 ~/Documents/Clients/Samtec $ chef-shell
loading configuration: none (standalone session)
Session type: standalone
Loading.........done.
This is the chef-shell.
Chef Version: 12.3.0
http://www.chef.io/
http://docs.chef.io/
run `help' for help, `exit' or ^D to quit.
Ohai2u alexvinyar@seavinyar02.home!
chef > attributes_mode
chef:attributes > node['environment']
=> nil
chef:attributes > node['chef_environment']
=> nil
chef:attributes > node.environment
=> "_default"
chef:attributes > node[:chef_environment]
=> nil
chef:attributes > node[:chef_^Cvironment]
chef:attributes >
chef:attributes >
chef:attributes > node[:winbase][:net_35_registry_key] = 'hello'
NoMethodError: undefined method `[]=' for nil:NilClass
from (irb#1):7
chef:attributes > default
=> {}
chef:attributes > default[:winbase][:net_35_registry_key] = "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5"
=> "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5"
chef:attributes >
chef:attributes > recipe_mode
chef:recipe > registry_key_exists?(node[:winbase][:net_35_registry_key])
NameError: uninitialized constant Win32
from /opt/chefdk/embedded/apps/chef/lib/chef/win32/registry.rb:312:in `get_hive_and_key'
from /opt/chefdk/embedded/apps/chef/lib/chef/win32/registry.rb:151:in `key_exists?'
from /opt/chefdk/embedded/apps/chef/lib/chef/dsl/registry_helper.rb:34:in `registry_key_exists?'
from (irb#2):1
chef:recipe > resources
[]
=> []
chef:recipe >
chef:recipe >
chef:recipe >
chef:recipe >
chef:recipe > a = 'a'
=> "a"
chef:recipe > a
=> "a"
chef:recipe > windows_reboot 30 do
chef:recipe > timeout 30
chef:recipe ?> reason '[CHEF] Configuration management changes require a reboot'
chef:recipe ?> action :nothing
chef:recipe ?> end
NoMethodError: No resource or method named `windows_reboot' for `Chef::Recipe ""'
from /opt/chefdk/embedded/apps/chef/lib/chef/dsl/recipe.rb:49:in `rescue in method_missing'
from /opt/chefdk/embedded/apps/chef/lib/chef/dsl/recipe.rb:46:in `method_missing'
from (irb#2):9
chef:recipe > reboot 'bla'
=> <reboot[bla] @name: "bla" @noop: nil @before: nil @params: {} @provider: Chef::Provider::Reboot @allowed_actions: [:nothing, :request_reboot, :reboot_now, :cancel] @action: :nothing @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "(irb#2):14:in `irb_binding'" @guard_interpreter: nil @default_guard_interpreter: :default @elapsed_time: 0 @sensitive: false @resource_name: :reboot @reason: "Reboot by Chef" @delay_mins: 0 @declared_type: :reboot @cookbook_name: nil @recipe_name: nil>
chef:recipe >
chef:recipe >
chef:recipe >
chef:recipe > resources
["reboot[bla]"]
=> ["reboot[bla]"]
chef:recipe > package 'notepad++'
=> <homebrew_package[notepad++] @name: "notepad++" @noop: nil @before: nil @params: {} @provider: nil @allowed_actions: [:nothing, :install, :upgrade, :remove, :purge, :reconfig] @action: :install @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "(irb#2):19:in `irb_binding'" @guard_interpreter: nil @default_guard_interpreter: :default @elapsed_time: 0 @sensitive: false @candidate_version: nil @options: nil @package_name: "notepad++" @resource_name: :homebrew_package @response_file: nil @response_file_variables: {} @source: nil @version: nil @timeout: 900 @homebrew_user: nil @declared_type: :package @cookbook_name: nil @recipe_name: nil>
chef:recipe >
chef:recipe >
chef:recipe >
chef:recipe >
chef:recipe >
chef:recipe > resources
["reboot[bla]", "package[notepad++]"]
=> ["reboot[bla]", "package[notepad++]"]
chef:recipe > attributes_mode
=> :recipe
chef:attributes >
chef:attributes >
chef:attributes >
chef:attributes >
chef:attributes > resources('package[bla]')
NoMethodError: Undefined node attribute or method `resources' on `node'
from /opt/chefdk/embedded/apps/chef/lib/chef/node/attribute.rb:474:in `method_missing'
from /opt/chefdk/embedded/apps/chef/lib/chef/node.rb:229:in `method_missing'
from (irb#1):16
chef:attributes > resources('reboot[bla]')
NoMethodError: Undefined node attribute or method `resources' on `node'
from /opt/chefdk/embedded/apps/chef/lib/chef/node/attribute.rb:474:in `method_missing'
from /opt/chefdk/embedded/apps/chef/lib/chef/node.rb:229:in `method_missing'
from (irb#1):17
chef:attributes > resources('reboot[bla]')
NoMethodError: Undefined node attribute or method `resources' on `node'
from /opt/chefdk/embedded/apps/chef/lib/chef/node/attribute.rb:474:in `method_missing'
from /opt/chefdk/embedded/apps/chef/lib/chef/node.rb:229:in `method_missing'
from (irb#1):18
chef:attributes > recipe_mode
=> :attributes
chef:recipe > resources('reboot[bla]')
<reboot[bla] @name: "bla" @noop: nil @before: nil @params: {} @provider: Chef::Provider::Reboot @allowed_actions: [:nothing, :request_reboot, :reboot_now, :cancel] @action: :nothing @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "(irb#2):14:in `irb_binding'" @guard_interpreter: nil @default_guard_interpreter: :default @elapsed_time: 0 @sensitive: false @resource_name: :reboot @reason: "Reboot by Chef" @delay_mins: 0 @declared_type: :reboot @cookbook_name: nil @recipe_name: nil>
=> <reboot[bla] @name: "bla" @noop: nil @before: nil @params: {} @provider: Chef::Provider::Reboot @allowed_actions: [:nothing, :request_reboot, :reboot_now, :cancel] @action: :nothing @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "(irb#2):14:in `irb_binding'" @guard_interpreter: nil @default_guard_interpreter: :default @elapsed_time: 0 @sensitive: false @resource_name: :reboot @reason: "Reboot by Chef" @delay_mins: 0 @declared_type: :reboot @cookbook_name: nil @recipe_name: nil>
chef:recipe > help
chef-shell Help
================================================================================
| Command | Description
================================================================================
| help | prints this help message
| version | prints information about chef
| recipe_mode | switch to recipe mode
| attributes_mode | switch to attributes mode
| run_chef | run chef using the current recipe
| chef_run | returns an object to control a paused chef run
| chef_run.resume | resume the chef run
| chef_run.step | run only the next resource
| chef_run.skip_back | move back in the run list
| chef_run.skip_forward | move forward in the run list
| reset | resets the current recipe
| become_node | assume the identity of another node.
| echo | turns printout of return values on or off
| echo? | says if echo is on or off
| tracing | turns on or off tracing of execution. *verbose*
| tracing? | says if tracing is on or off
| ls | simple ls style command
| resources | list all the resources on the current recipe
================================================================================
Use help(:command) to get detailed help with individual commands
=> :ucanhaz_halp
chef:recipe > attributes_mode
=> :recipe
chef:attributes > help
chef-shell Help
================================================================================
| Command | Description
================================================================================
| help | prints this help message
| version | prints information about chef
| recipe_mode | switch to recipe mode
| attributes_mode | switch to attributes mode
| run_chef | run chef using the current recipe
| chef_run | returns an object to control a paused chef run
| chef_run.resume | resume the chef run
| chef_run.step | run only the next resource
| chef_run.skip_back | move back in the run list
| chef_run.skip_forward | move forward in the run list
| reset | resets the current recipe
| become_node | assume the identity of another node.
| echo | turns printout of return values on or off
| echo? | says if echo is on or off
| tracing | turns on or off tracing of execution. *verbose*
| tracing? | says if tracing is on or off
| ls | simple ls style command
================================================================================
Use help(:command) to get detailed help with individual commands
=> :ucanhaz_halp
chef:attributes > history
NoMethodError: Undefined method or attribute `history' on `node'
from /opt/chefdk/embedded/apps/chef/lib/chef/node/attribute.rb:468:in `method_missing'
from /opt/chefdk/embedded/apps/chef/lib/chef/node.rb:229:in `method_missing'
from (irb#1):21
chef:attributes >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment