forked from seattlerb/vlad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
52 lines (40 loc) · 1.19 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- ruby -*-
require 'rubygems'
require 'hoe'
$: << 'lib'
require 'vlad'
Hoe.new('vlad', Vlad::VERSION) do |vlad|
vlad.rubyforge_name = 'hitsquad'
vlad.developer('Ryan Davis', 'ryand-ruby@zenspider.com')
vlad.developer('Eric Hodel', 'drbrain@segment7.net')
vlad.developer('Wilson Bilkovich', 'wilson@supremetyrant.com')
vlad.extra_deps << ['rake', '>= 0.8.1']
vlad.extra_deps << 'open4'
vlad.multiruby_skip << "1.9" << "rubinius"
end
desc "quick little hack to see what the state of the nation looks like"
task :debug do
Vlad.load :config => "lib/vlad/subversion.rb"
set :repository, "repository path"
set :deploy_to, "deploy path"
set :domain, "server domain"
Rake::Task['vlad:debug'].invoke
end
task :flog do
sh 'flog -s lib'
end
task :flog_full do
sh 'flog -a lib'
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