waistband 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/waistband/connection.rb +5 -5
- data/lib/waistband/version.rb +1 -1
- metadata +1 -1
data/lib/waistband/connection.rb
CHANGED
|
@@ -16,23 +16,23 @@ module Waistband
|
|
|
16
16
|
attr_accessor :result, :kind
|
|
17
17
|
|
|
18
18
|
def index_already_exists?
|
|
19
|
-
|
|
19
|
+
!!message.match("IndexAlreadyExistsException")
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def alias_with_name_exists?
|
|
23
|
-
|
|
23
|
+
!!message.match("InvalidIndexNameException") && !!message.match("an alias with the same name already exists")
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def index_missing?
|
|
27
|
-
|
|
27
|
+
!!message.match("IndexMissingException")
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def key_missing?
|
|
31
|
-
|
|
31
|
+
!!message.match("KeyMissing")
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def alias_not_ok?
|
|
35
|
-
|
|
35
|
+
!!message.match("AliasNotOk")
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
|
data/lib/waistband/version.rb
CHANGED