riddle 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/riddle/controller.rb +2 -1
- metadata +2 -2
data/lib/riddle/controller.rb
CHANGED
@@ -18,11 +18,12 @@ module Riddle
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def index(*indexes)
|
21
|
+
options = indexes.last.is_a?(Hash) ? indexes.pop : {}
|
21
22
|
indexes << '--all' if indexes.empty?
|
22
23
|
|
23
24
|
cmd = "#{indexer} --config #{@path} #{indexes.join(' ')}"
|
24
25
|
cmd << " --rotate" if running?
|
25
|
-
`#{cmd}`
|
26
|
+
options[:verbose] ? system(cmd) : `#{cmd}`
|
26
27
|
end
|
27
28
|
|
28
29
|
def start
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riddle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-10 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|