auger 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,8 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
  gem 'host_range'
3
3
  gem 'rainbow'
4
- gem 'cassandra'
5
- gem 'cassandra-cql'
4
+ # gem 'cassandra'
5
+ # gem 'cassandra-cql'
6
6
  gem 'net-dns'
7
7
  gem 'redis'
8
8
  gem 'json'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.2
1
+ 1.3.3
data/auger.gemspec CHANGED
@@ -21,7 +21,5 @@ Gem::Specification.new do |gem|
21
21
  gem.add_dependency('net-dns' , '>= 0.7.1')
22
22
  gem.add_dependency('rainbow' , '>=1.1.4')
23
23
  gem.add_dependency('host_range' , '>=0.0.1')
24
- gem.add_dependency('cassandra' , '>=0.12.1')
25
- gem.add_dependency('cassandra-cql' , '>= 1.0.4')
26
24
  end
27
25
 
data/lib/auger/result.rb CHANGED
@@ -3,24 +3,6 @@ module Auger
3
3
  class Result
4
4
  attr_accessor :test, :outcome, :status
5
5
 
6
- # def initialize(test, outcome)
7
- # @test = test
8
- # @outcome = outcome
9
- # end
10
-
11
- # def initialize(*args)
12
- # hash = args.last.is_a?(Hash) ? args.pop : {}
13
- # hash.each { |k,v| puts "got hash: #{k} = #{v}" }
14
- # (@outcome, @status) = args
15
- # end
16
-
17
- ## optional args are outcome, status, Hash of instance variables
18
- # def initialize(*args)
19
- # hash = args.last.is_a?(Hash) ? args.pop : {}
20
- # (@outcome, @status) = args
21
- # hash.each { |k,v| self.instance_variable_set("@#{k}", v) }
22
- # end
23
-
24
6
  def initialize(outcome = nil, status = outcome)
25
7
  @outcome = outcome
26
8
  @status = status
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -92,38 +92,6 @@ dependencies:
92
92
  - - ! '>='
93
93
  - !ruby/object:Gem::Version
94
94
  version: 0.0.1
95
- - !ruby/object:Gem::Dependency
96
- name: cassandra
97
- requirement: !ruby/object:Gem::Requirement
98
- none: false
99
- requirements:
100
- - - ! '>='
101
- - !ruby/object:Gem::Version
102
- version: 0.12.1
103
- type: :runtime
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: 0.12.1
111
- - !ruby/object:Gem::Dependency
112
- name: cassandra-cql
113
- requirement: !ruby/object:Gem::Requirement
114
- none: false
115
- requirements:
116
- - - ! '>='
117
- - !ruby/object:Gem::Version
118
- version: 1.0.4
119
- type: :runtime
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
- requirements:
124
- - - ! '>='
125
- - !ruby/object:Gem::Version
126
- version: 1.0.4
127
95
  description: ! 'Auger: test-driven ops'
128
96
  email:
129
97
  - rlister@gmail.com
@@ -154,8 +122,6 @@ files:
154
122
  - lib/auger/server.rb
155
123
  - lib/auger/test.rb
156
124
  - lib/auger/version.rb
157
- - lib/plugins/cassandra.rb
158
- - lib/plugins/cql.rb
159
125
  - lib/plugins/dns.rb
160
126
  - lib/plugins/http.rb
161
127
  - lib/plugins/redis.rb
@@ -1,54 +0,0 @@
1
- require 'cassandra'
2
-
3
- module Auger
4
-
5
- class Project
6
- def cassandra(port = 9160, &block)
7
- @connections << Cassandra.load(port, &block)
8
- end
9
- end
10
-
11
- class Cassandra < Auger::Connection
12
- def open(host, options)
13
- ::Cassandra.new(options[:keyspace], "#{host}:#{options[:port]}")
14
- end
15
-
16
- def close(cassandra)
17
- cassandra.disconnect!
18
- end
19
-
20
- def cluster_name(&block)
21
- @requests << Class.new(Auger::Request) do
22
- def run(cassandra)
23
- cassandra.cluster_name
24
- end
25
- end.load(nil, &block)
26
- end
27
-
28
- def ring(&block)
29
- @requests << Class.new(Auger::Request) do
30
- def run(cassandra)
31
- cassandra.ring
32
- end
33
- end.load(nil, &block)
34
- end
35
-
36
- def version(&block)
37
- @requests << Class.new(Auger::Request) do
38
- def run(cassandra)
39
- cassandra.version
40
- end
41
- end.load(nil, &block)
42
- end
43
-
44
- def schema_agreement?(&block)
45
- @requests << Class.new(Auger::Request) do
46
- def run(cassandra)
47
- cassandra.schema_agreement?
48
- end
49
- end.load(nil, &block)
50
- end
51
-
52
- end
53
-
54
- end
data/lib/plugins/cql.rb DELETED
@@ -1,31 +0,0 @@
1
- require 'cassandra-cql'
2
-
3
- module Auger
4
-
5
- class Project
6
- def cql(port = 9160, &block)
7
- @connections << Cql.load(port, &block)
8
- end
9
- end
10
-
11
- class Cql < Auger::Connection
12
- def open(host, options)
13
- CassandraCQL::Database.new "#{host}:#{options[:port]}", options
14
- end
15
-
16
- def close(db)
17
- db.disconnect!
18
- end
19
-
20
- def execute(statement, &block)
21
- @requests << CqlRequest.load(statement, &block)
22
- end
23
- end
24
-
25
- class CqlRequest < Auger::Request
26
- def run(db)
27
- db.execute(@arg)
28
- end
29
- end
30
-
31
- end