Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (55 sloc) 1.74 kb
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/packagetask'
require 'rake/gempackagetask'
load 'tasks/proxy_tasks.rake'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the Foreman Proxy plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
files = FileList['test/**/*_test.rb']
if PLATFORM =~ /mingw/
files = FileList['test/**/server_ms_test*']
else
files = FileList['test/**/*_test.rb'].delete_if{|f| f =~ /_ms_/}
end
t.test_files = files
t.verbose = true
end
desc 'Generate documentation for the Foreman Proxy plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Proxy'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
spec = Gem::Specification.new do |s|
s.name = "foreman_proxy"
s.version = "0.1"
s.author = "Ohad Levy"
s.email = "ohadlevy@gmail.com"
s.homepage = "http://theforeman.org/"
s.platform = Gem::Platform::RUBY
s.summary = "Foreman Proxy Agent, manage remote DHCP, DNS, TFTP and Puppet servers"
s.files = FileList["{bin,public,config,views,lib}/**/*"].to_a
s.default_executable = 'bin/smart_proxy.rb'
s.require_path = "lib"
s.test_files = FileList["{test}/**/*test.rb"].to_a
s.has_rdoc = true
s.extra_rdoc_files = ["README"]
s.add_dependency 'json'
s.add_dependency 'sinatra'
s.add_dependency 'net/ping'
s.rubyforge_project = 'rake'
s.description = <<EOF
Foreman Proxy is used via The Foreman Project, it allows Foreman to manage
Remote DHCP, DNS, TFTP and Puppet servers via a REST API
EOF
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar_gz = true
end
Jump to Line
Something went wrong with that request. Please try again.