Sha256: b29417f735078e1f0c2c09b638a2be94b3641ad7ca346701a6b5e713ec6a0214

Contents?: true

Size: 598 Bytes

Versions: 2

Compression:

Stored size: 598 Bytes

Contents

require 'thor'

module MamaCass

  class CLI < Thor

    desc 'start', 'Start cassandra'
    def start
      say 'Starting cassandra...'
      system 'env CASSANDRA_INCLUDE=config/cassandra/cassandra.in.sh CASSANDRA_HOME=cassandra/server CASSANDRA_CONF=config/cassandra cassandra/server/bin/cassandra -f' 
    end

    desc 'console', 'Start the cassandra console'
    def console
      system 'env CASSANDRA_INCLUDE=config/cassandra/cassandra.in.sh CASSANDRA_HOME=cassandra/server CASSANDRA_CONF=config/cassandra cassandra/server/bin/cassandra-cli --host localhost --port 9160'
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mama_cass-0.0.2 lib/mama_cass/cli.rb
mama_cass-0.0.1 lib/mama_cass/cli.rb