Skip to content

Instantly share code, notes, and snippets.

@fujin
Forked from jtimberman/gist:91497
Created April 7, 2009 22:35
Show Gist options
  • Save fujin/91509 to your computer and use it in GitHub Desktop.
Save fujin/91509 to your computer and use it in GitHub Desktop.
aj@aj-christensens-macbook (branch: master) ~/Development/chef$ rake install
(in /Users/aj/Development/chef)
rake install
(in /Users/aj/Development/chef/chef)
mkdir -p pkg
WARNING: no rubyforge_project specified
Successfully built RubyGem
Name: chef
Version: 0.5.7
File: chef-0.5.7.gem
mv chef-0.5.7.gem pkg/chef-0.5.7.gem
sudo gem install pkg/chef-0.5.7 --no-rdoc --no-ri
Successfully installed chef-0.5.7
1 gem installed
rake install
(in /Users/aj/Development/chef/chef-server-slice)
sudo gem install pkg/chef-server-slice-0.5.7 --no-rdoc --no-ri
ERROR: could not find gem pkg/chef-server-slice-0.5.7 locally or in a repository
rake aborted!
Command failed with status (2): [sudo gem install pkg/chef-server-slice-0.5...]
/Users/aj/Development/chef/chef-server-slice/Rakefile:51
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [rake install...]
/Users/aj/Development/chef/Rakefile:15
(See full trace by running task with --trace)
--git a/chef-server-slice/Rakefile b/chef-server-slice/Rakefile
index 8cb5b22..64d958e 100644
--- a/chef-server-slice/Rakefile
+++ b/chef-server-slice/Rakefile
@@ -47,7 +47,7 @@ Rake::GemPackageTask.new(spec) do |pkg|
end
desc "Install the gem"
-task :install do
+task :install => :package do
sh %{sudo gem install pkg/#{GEM_NAME}-#{CHEF_SERVER_VERSION} --no-rdoc --no-ri}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment