diff options
author | Adam Jacob <adam@opscode.com> | 2010-06-07 22:22:15 -0700 |
---|---|---|
committer | Adam Jacob <adam@opscode.com> | 2010-06-07 22:22:15 -0700 |
commit | 91a46c2a83a1abf634880b0071ff7715f160bf1f (patch) | |
tree | 14eb34f2d50201ce850c950f756430470a586bdd /chef/lib/chef/knife/bootstrap.rb | |
parent | 4415dd4e8b3751b69fe939d7bac16670dae30300 (diff) | |
download | chef-91a46c2a83a1abf634880b0071ff7715f160bf1f.tar.gz |
adding pre-release support to bootstrap
Diffstat (limited to 'chef/lib/chef/knife/bootstrap.rb')
-rw-r--r-- | chef/lib/chef/knife/bootstrap.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chef/lib/chef/knife/bootstrap.rb b/chef/lib/chef/knife/bootstrap.rb index 6a7e591615..77f0e032d7 100644 --- a/chef/lib/chef/knife/bootstrap.rb +++ b/chef/lib/chef/knife/bootstrap.rb @@ -42,6 +42,10 @@ class Chef :long => "--node-name NAME", :description => "The Chef node name for your new node" + option :prerelease, + :long => "--prerelease", + :description => "Install the pre-release chef gems" + def h @highline ||= HighLine.new @@ -67,7 +71,7 @@ if [ ! -f /usr/bin/chef-client ]; then cd rubygems-1.3.6 ruby setup.rb cp /usr/bin/gem1.8 /usr/bin/gem - gem install chef ohai --no-rdoc --no-ri --verbose + gem install ohai chef --no-rdoc --no-ri --verbose #{"--prerelease" if config[:prerelease]} fi mkdir -p /etc/chef |