Sha256: ba414bf8ccba6e0608f1f4951f694698b26a4d6be175e81cbd11ca98408e2170

Contents?: true

Size: 847 Bytes

Versions: 1

Compression:

Stored size: 847 Bytes

Contents

#!/usr/bin/env ruby
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'jeweler/generator'
require 'bundler'
require 'bundler/cli'
require 'fileutils'
require 'bio-gem'
require 'rake'


orig_argv = ARGV.clone
# application_exit[:exit] exists, application_exit[:options] it depends.
application_exit = Bio::Gem::Generator::Application.run!(*ARGV)

if (application_exit[:exit]==0)
  pwd = FileUtils.pwd
  FileUtils.cd "bioruby-#{application_exit[:options][:project_name]}"
  ARGV.clear << "install"

  Bundler::CLI.start
  #TODO: call rake directly not from shell
  # print "Note: if rake gives an error try running biogem from an installed gem\n"
  print "\trake version:write\n"
  sh "rake version:write"
  print "\trake gemspec\n"
  sh "rake gemspec"
  print "Done!\n"
else
  $stderr.print "\nERROR: Biogem failed!\n"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bio-gem-1.2.2 bin/biogem