Sha256: 87a1f047063139699d116f4284264f62e43474e100ae47eca63f38b54c0d6b55

Contents?: true

Size: 741 Bytes

Versions: 4

Compression:

Stored size: 741 Bytes

Contents

module PoolParty
  class Base
    plugin :tokyo_tyrant do
      
      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

4 entries across 4 versions & 2 rubygems

Version Path
auser-poolparty-1.1.6 lib/poolparty/plugins/tokyo_tyrant.rb
auser-poolparty-1.1.7 lib/poolparty/plugins/tokyo_tyrant.rb
auser-poolparty-1.2.0 lib/poolparty/plugins/tokyo_tyrant.rb
fairchild-poolparty-1.1.5 lib/poolparty/plugins/tokyo_tyrant.rb