Sha256: 1b19c9626f0e46e90addc8ded4d0895f5a9c67a9bd3803499638f21b7faa85f6

Contents?: true

Size: 826 Bytes

Versions: 5

Compression:

Stored size: 826 Bytes

Contents

=begin rdoc
  Install tokyo tyrant
  
  Usage:
      enable :tokyo_tyrant
=end
module PoolParty
  module Plugin
    class TokyoTyrant < Plugin
      
      def enable
        has_package "build-essential"
        has_package "zlib1g-dev"
        has_package "libbz2-dev"
        has_gem_package "rufus-tokyo"
        
        has_exec "install tokyo-cabinet" do
          command "cd ~ && git clone git://github.com/etrepum/tokyo-cabinet.git && cd tokyo-cabinet/ && ./configure && make && make install && cd ~"
          not_if "which tcrtest"
        end
        has_exec "install tokyo-tyrant" do
          command "cd ~ && git clone git://github.com/etrepum/tokyo-tyrant.git && cd tokyo-tyrant/ && ./configure && make && make install && cd ~"
          not_if "which ttserver"
        end
      end
      
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
auser-poolparty-extensions-0.0.7 lib/extensions/tokyo_tyrant.rb
auser-poolparty-extensions-0.1.1 lib/extensions/tokyo_tyrant.rb
jashmenn-poolparty-extensions-0.0.7 lib/extensions/tokyo_tyrant.rb
jashmenn-poolparty-extensions-0.1.0 lib/extensions/tokyo_tyrant.rb
jashmenn-poolparty-extensions-0.1.1 lib/extensions/tokyo_tyrant.rb