Skip to content

Commit

Permalink
use the new class Bio::Gem for running the application
Browse files Browse the repository at this point in the history
  • Loading branch information
rjpbonnal committed Jan 10, 2011
1 parent 2d56aa8 commit 934ae3a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/biogem
Expand Up @@ -9,11 +9,14 @@ require 'rake'


orig_argv = ARGV.clone
if (Jeweler::Generator::Application.run!(*ARGV)==0)
# application_exit[:exit] exists, application_exit[:options] it depends.
application_exit = Bio::Gem::Generator::Application.run!(*ARGV)
if (application_exit[:exit])
pwd = FileUtils.pwd
FileUtils.cd "bioruby-#{ARGV.shift}"
FileUtils.cd "bioruby-#{application_exit[:options][:project_name]}"
ARGV << "install"
Bundler::CLI.start
#TODO: call rake directly not from shell
sh "rake version:write"
sh "rake gemspec"
end

0 comments on commit 934ae3a

Please sign in to comment.