Skip to content

Commit

Permalink
Make the install and release Rake tasks visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jun 22, 2008
1 parent f5765c8 commit 59f5b54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Expand Up @@ -57,11 +57,13 @@ Rake::Task[:package].prerequisites.insert(0, :revision_file)
# We also need to get rid of this file after packaging.
at_exit { File.delete('REVISION') rescue nil }

desc "Install Haml as a gem."
task :install => [:package] do
sudo = RUBY_PLATFORM =~ /win32/ ? '' : 'sudo'
sh %{#{sudo} gem install --no-ri pkg/haml-#{File.read('VERSION').strip}}
end

desc "Release a new Haml package to Rubyforge. Requires the NAME and VERSION flags."
task :release => [:package] do
name, version = ENV['NAME'], ENV['VERSION']
raise "Must supply NAME and VERSION for release task." unless name && version
Expand Down

0 comments on commit 59f5b54

Please sign in to comment.