forked from negativecode/vines-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
57 lines (46 loc) · 1.51 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
55
56
57
require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rubygems/package_task'
require_relative 'lib/vines/agent/version'
spec = Gem::Specification.new do |s|
s.name = "vines-agent"
s.version = Vines::Agent::VERSION
s.summary = "An XMPP bot that runs shell commands on remote machines."
s.description = "Vines Agent executes shell commands sent by users after
authorizing them against an access control list, provided by the Vines Services
component. Manage a server as easily as chatting with a friend."
s.authors = ["David Graham"]
s.email = %w[david@negativecode.com]
s.homepage = "http://www.getvines.org"
s.files = FileList['[A-Z]*', '{bin,lib,conf}/**/*']
s.test_files = FileList["test/**/*"]
s.executables = %w[vines-agent]
s.require_path = "lib"
s.add_dependency "blather", "~> 0.5.12"
s.add_dependency "ohai", "~> 0.6.10"
s.add_dependency "session", "~> 3.1.0"
s.add_dependency "slave", "~> 1.3.0"
s.add_dependency "vines", ">= 0.4.0"
s.add_development_dependency "minitest"
s.add_development_dependency "rake"
s.required_ruby_version = '>= 1.9.2'
end
Gem::PackageTask.new(spec) do |pkg|
pkg.need_tar = true
end
module Rake
class TestTask
# use our custom test loader
def rake_loader
'test/rake_test_loader.rb'
end
end
end
Rake::TestTask.new(:test) do |test|
test.libs << 'test'
test.libs << 'test/storage'
test.pattern = 'test/**/*_test.rb'
test.warning = false
end
task :default => [:clobber, :test, :gem]