forked from alexvollmer/clip
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
42 lines (35 loc) · 951 Bytes
/
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
#!/usr/bin/env ruby
require 'rubygems'
require 'hoe'
require './lib/clip.rb'
Hoe.new('clip', Clip::VERSION) do |p|
p.name = 'clip'
p.developer('Alex Vollmer', '[email protected]')
p.description = p.paragraphs_of('README.txt', 5..5).join("\n\n")
p.summary = 'Command-line parsing made short and sweet'
p.url = 'http://clip.rubyforge.org'
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.remote_rdoc_dir = ''
end
require "spec/rake/spectask"
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
end
HERE = "web"
THERE = "[email protected]:/var/www/gforge-projects/clip"
desc "Sync web files here"
task :sync_here do
puts %x(rsync \
--verbose \
--recursive \
#{THERE}/ #{HERE})
end
desc "Sync web files there"
task :sync_there do
puts %x(rsync \
--verbose \
--recursive \
--delete \
#{HERE}/ #{THERE}})
end
task :default => :spec