Sha256: f9bb7112f9c5b8f2f17c129393f8a0dd8fed60abb8d8f4adedbb4359f5687fa6
Contents?: true
Size: 857 Bytes
Versions: 6
Compression:
Stored size: 857 Bytes
Contents
# encoding: UTF-8 class Ohm < Thor desc "doc", "Generate YARD documentation" method_options :open => false def doc require "yard" opts = ["--protected", "--title", "Ohm – Object-hash mapping library for Redis"] YARD::CLI::Yardoc.run(*opts) system "open doc/index.html" if options[:open] end desc "deploy", "Deploy documentation" def deploy system "rsync -az doc/* ohm.keyvalue.org:deploys/ohm.keyvalue.org/" end desc "test", "Run all tests" def test invoke "ohm:redis:start" Dir["test/**/*_test.rb"].each do |file| load file end end class Redis < Thor desc "start", "Start Redis server" def start %x{dtach -n /tmp/ohm.dtach redis-server test/test.conf} end desc "attach", "Attach to Redis server" def attach %x{dtach -a /tmp/ohm.dtach} end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
ohm-0.0.33 | Thorfile |
ohm-0.0.32 | Thorfile |
ohm-0.0.31 | Thorfile |
ohm-0.0.30 | Thorfile |
ohm-0.0.29 | Thorfile |
ohm-0.0.28 | Thorfile |