forked from delano/rye
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
55 lines (48 loc) · 1.57 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
53
54
require "rubygems"
require "rake"
require "rake/clean"
require "rdoc/task"
task :default => ["build"]
CLEAN.include [ 'pkg', 'doc', 'rdoc' ]
name = "rye"
key = '/etc/certs/gem-private_key.pem';
$:.unshift File.join(File.dirname(__FILE__), 'lib')
require name
version = Rye::VERSION.to_s
begin
require "jeweler"
Jeweler::Tasks.new do |s|
s.version = version
s.name = name
s.rubyforge_project = s.name
s.summary = "Run SSH commands on a bunch of machines at the same time (from Ruby)."
s.description = "Run SSH commands on a bunch of machines at the same time (from Ruby)."
s.email = "[email protected]"
s.homepage = "https://github.com/delano/rye"
s.authors = ["Delano Mandelbaum"]
s.add_dependency 'annoy'
s.add_dependency 'sysinfo', '>= 0.8.1'
s.add_dependency 'highline', '>= 1.5.1'
s.add_dependency 'net-ssh', '>= 2.0.13'
s.add_dependency 'net-scp', '>= 1.0.2'
s.add_dependency 'docile', '>= 1.0.1'
if File.exists?(key)
s.cert_chain = ['gem-public_cert.pem']
s.signing_key = key
end
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = "doc"
rdoc.title = "#{name} #{version}"
rdoc.generator = 'hanna'
rdoc.main = 'README.rdoc'
rdoc.rdoc_files.include("README*")
rdoc.rdoc_files.include("LICENSE.txt")
rdoc.rdoc_files.include("VERSION")
rdoc.rdoc_files.include("bin/*.rb")
rdoc.rdoc_files.include("lib/**/*.rb")
end