Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (37 sloc) 1.171 kb
ef51a62 Matt Freels embedded test server, basic host management commands
freels authored
1 ROOT_DIR = File.expand_path(File.dirname(__FILE__))
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
2 begin
35b8452 Matt Freels use bundler for deps
freels authored
3 require 'rubygems'
4 require 'bundler/setup'
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
5 rescue LoadError
35b8452 Matt Freels use bundler for deps
freels authored
6 $stderr.puts "bundler not found. run `gem install bundler`"
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
7 end
8
35b8452 Matt Freels use bundler for deps
freels authored
9 require 'rake'
af119ed Stu Hood Enable code-coverage
stuhood authored
10 require 'rcov'
35b8452 Matt Freels use bundler for deps
freels authored
11 require 'jeweler'
12 require 'spec/rake/spectask'
13 require 'rdoc/task'
6c15e72 Matt Freels add failing specs for setup_shards
freels authored
14
35b8452 Matt Freels use bundler for deps
freels authored
15 task :default => :spec
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
16
35b8452 Matt Freels use bundler for deps
freels authored
17 Jeweler::Tasks.new do |gem|
18 gem.name = "gizzmo"
19 gem.summary = %Q{Gizzmo is a command-line client for managing gizzard clusters.}
20 gem.description = %Q{Gizzmo is a command-line client for managing gizzard clusters.}
f6b206e Stu Hood Make confirm! and on_all_servers pruning more testable, and test them.
stuhood authored
21 gem.email = "stuhood@twitter.com"
35b8452 Matt Freels use bundler for deps
freels authored
22 gem.homepage = "http://github.com/twitter/gizzmo"
23 gem.authors = ["Kyle Maxwell"]
fb8b493 rake test works
Kyle Maxwell authored
24 end
35b8452 Matt Freels use bundler for deps
freels authored
25 Jeweler::GemcutterTasks.new
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
26
35b8452 Matt Freels use bundler for deps
freels authored
27 Spec::Rake::SpecTask.new(:spec) do |t|
28 spec_opts = File.expand_path('test/spec.opts', ROOT_DIR)
29 if File.exist? spec_opts
30 t.spec_opts = ['--options', "\"#{spec_opts}\""]
31 end
02dae6f Stu Hood Fix tests
stuhood authored
32 t.spec_files = FileList['test/**/*_spec.rb']
af119ed Stu Hood Enable code-coverage
stuhood authored
33 t.rcov = true
35b8452 Matt Freels use bundler for deps
freels authored
34 end
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
35
36 Rake::RDocTask.new do |rdoc|
37 version = File.exist?('VERSION') ? File.read('VERSION') : ""
38
39 rdoc.rdoc_dir = 'rdoc'
40 rdoc.title = "gizzmo #{version}"
41 rdoc.rdoc_files.include('README*')
42 rdoc.rdoc_files.include('lib/**/*.rb')
43 end
Something went wrong with that request. Please try again.