Skip to content

Commit

Permalink
! Split out rake_remote_task.rb and vlad_test_case.rb (in rake-remote…
Browse files Browse the repository at this point in the history
…_task gem).

+ Moved all Vlad exceptions to Rake (in rake-remote_task gem).
+ Moved VladTestCase to Rake::TestCase (in rake-remote_task gem).

[git-p4: depot-paths = "//src/vlad/dev/": change = 5549]
  • Loading branch information
zenspider committed Dec 21, 2009
1 parent 3910bab commit 548deb8
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 1,010 deletions.
3 changes: 0 additions & 3 deletions Manifest.txt
Expand Up @@ -11,15 +11,12 @@ doco/getting_started.txt
doco/migration.txt
doco/perforce.txt
doco/variables.txt
lib/rake_remote_task.rb
lib/vlad.rb
lib/vlad/apache.rb
lib/vlad/core.rb
lib/vlad/maintenance.rb
lib/vlad/passenger.rb
lib/vlad/subversion.rb
lib/vlad_test_case.rb
test/test_rake_remote_task.rb
test/test_vlad.rb
test/test_vlad_subversion.rb
vladdemo.sh
18 changes: 5 additions & 13 deletions Rakefile
Expand Up @@ -5,6 +5,8 @@ require 'hoe'

Hoe.plugin :seattlerb

Hoe.add_include_dirs "../../rake-remote_task/dev/lib"

Hoe.spec 'vlad' do
self.rubyforge_name = 'hitsquad'

Expand All @@ -13,6 +15,7 @@ Hoe.spec 'vlad' do
developer 'Wilson Bilkovich', 'wilson@supremetyrant.com'

extra_deps << ['rake', '~> 0.8.0']
extra_deps << ['rake-remote_task', '~> 2.0']
extra_deps << ['open4', '~> 0.9.0']

# TODO: remove 1.9
Expand All @@ -21,6 +24,8 @@ end

desc "quick little hack to see what the state of the nation looks like"
task :debug do
$: << 'lib'
require 'vlad'
Vlad.load :config => "lib/vlad/subversion.rb"
set :repository, "repository path"
set :deploy_to, "deploy path"
Expand All @@ -29,17 +34,4 @@ task :debug do
Rake::Task['vlad:debug'].invoke
end

task :mana_from_heaven do
# vlad = vlad + rake + open4
# rake sans-contrib = 2035.98356718206
vlad = `flog -s lib`.to_f + 2350.30744806517 + 502.363818023761
cap = 11480.3919695285
ratio = cap / vlad
target = cap / Math::PI

puts "%14.8f = %s" % [vlad, "vlad"]
puts "%14.8f = %s" % [ratio, "ratio"]
puts "%14.8f = %s" % [target - vlad, "needed delta"]
end

# vim: syntax=ruby

0 comments on commit 548deb8

Please sign in to comment.