Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 582a60b0c6
Fetching contributors…

Cannot retrieve contributors at this time

69 lines (58 sloc) 1.838 kB
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "piglop-ovh-rb"
gem.summary = "ovh-rb helps you to use the OVH SOAPI in a ruby way "
gem.email = "mike@lepton.fr"
gem.homepage = "http://github.com/piglop/ovh-rb"
gem.authors = ["Michael Witrant", "Aurélien AMILIN"]
gem.executables = ["ovhrb", "failover_check"]
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
end
task :test => :check_dependencies
task :default => :test
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "ovh-rb #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
namespace :wsdl do
task :update => [:dump]
output = "lib/ovhrb/manager"
task :dump do
program = %x(gem content soap4r --prefix |grep /bin/wsdl2ruby.rb).strip
raise "wsdl2ruby.rb not found" if program.empty?
require 'fileutils'
FileUtils.mkpath output
Dir.chdir output do
system program, "--wsdl", "https://www.ovh.com/soapi/soapi-re-1.9.wsdl", "--type", "client", "--force"
end
end
end
Jump to Line
Something went wrong with that request. Please try again.