Sha256: 5bfc188a217b4d02784fe7ec434580ee4f3643fe75b77109e8c3e469fd30e5ad
Contents?: true
Size: 925 Bytes
Versions: 21
Compression:
Stored size: 925 Bytes
Contents
require 'bundler' Bundler::GemHelper.install_tasks task :default => [ :test ] do end desc "Run Test::Unit tests" task :test do Dir["test/**/*_test.rb"].each { |test| require(File.expand_path(test)) } end desc "Used for quickly deploying and testing updates without pusing to rubygems.org" task :deploy do File.open("DEV_VERSION", "w") { |f| f.write(".DEV.#{Time.now.to_i}") } gem_file = "testbot-#{Testbot.version}.gem" config = YAML.load_file(".deploy_config.yml") Rake::Task["build"].invoke begin system(config["upload_gem"].gsub(/GEM_FILE/, gem_file)) || fail system(config["update_server"].gsub(/GEM_FILE/, gem_file)) || fail system(config["restart_server"]) || fail ensure system("rm DEV_VERSION") end end desc "Used to restart the server when developing testbot" task :restart do config = YAML.load_file(".deploy_config.yml") system(config["restart_server"]) || fail end
Version data entries
21 entries across 21 versions & 2 rubygems