Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 0.9.12
-
Fix Version/s: None
-
Component/s: Knife
-
Labels:None
Description
It would be useful to be able to pass arguments to knife exec scripts. You can currently parse ARGV to accomplish this but knife will backtrace when it treats the argument as an additional file.
Knife exec currently parses command line arguments in an ARGF-like format, where each argument is treated to be the name of a script file to exec.
knife exec one.knife two.knife three.knife
works like:
knife exec one.knife
knife exec two.knife
knife exec three.knife
btm@btm-mbp-dev:~/devel/platform/rsprod$ knife exec apt.knife base you gave me role: base /var/lib/gems/1.8/gems/chef-0.9.12/lib/chef/knife/exec.rb:44:in `read': No such file or directory - /home/btm/devel/platform/rsprod/base (Errno::ENOENT) from /var/lib/gems/1.8/gems/chef-0.9.12/lib/chef/knife/exec.rb:44:in `run' from /var/lib/gems/1.8/gems/chef-0.9.12/lib/chef/knife/exec.rb:42:in `each' from /var/lib/gems/1.8/gems/chef-0.9.12/lib/chef/knife/exec.rb:42:in `run' from /var/lib/gems/1.8/gems/chef-0.9.12/lib/chef/knife.rb:127:in `run' from /var/lib/gems/1.8/gems/chef-0.9.12/lib/chef/application/knife.rb:121:in `run' from /var/lib/gems/1.8/gems/chef-0.9.12/bin/knife:25 from /var/lib/gems/1.8/bin/knife:19:in `load' from /var/lib/gems/1.8/bin/knife:19
Activity
- All
- Comments
- History
- Activity
- Transitions Summary