springboard 0.18.7 → 0.18.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/bin/springboard +24 -0
- data/lib/springboard/generators/config_generator.rb +3 -0
- data/lib/springboard/generators/templates/elasticsearch.yml +5 -0
- data/lib/springboard/version.rb +1 -1
- metadata +24 -43
- data/bin/elasticsearch +0 -18
data/Rakefile
CHANGED
data/bin/springboard
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'pathname'
|
4
|
+
|
5
|
+
# Not using optparse or trollop because they raise on unknown args, and
|
6
|
+
# we want to pass all unknown args to elasticsearch.
|
7
|
+
args = ARGV.join(" ")
|
8
|
+
|
9
|
+
config_directory_arg = /-c\s+(\S+)\s?/
|
10
|
+
|
11
|
+
if dir = args.slice!(config_directory_arg)
|
12
|
+
|
13
|
+
conf = config_directory_arg.match(dir){ |m| Pathname.new(m[1]) }
|
14
|
+
|
15
|
+
raise "Must provide the configuration directory." unless conf.directory?
|
16
|
+
|
17
|
+
ENV['ES_JAVA_OPTS'] = "-Des.path.conf=#{conf.to_s}"
|
18
|
+
|
19
|
+
if es_include = conf.children(false).detect { |p| p.to_s == "elasticsearch.in.sh" }
|
20
|
+
ENV['ES_INCLUDE'] = (conf + es_include).to_s
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
exec (Pathname.new(File.dirname(__FILE__)) + "../vendor/elasticsearch/bin/elasticsearch").realpath.to_s, args.strip
|
@@ -10,6 +10,9 @@ module Springboard
|
|
10
10
|
template "elasticsearch.yml", "config/elasticsearch/elasticsearch.yml"
|
11
11
|
copy_file "logging.yml", "config/elasticsearch/logging.yml"
|
12
12
|
copy_file "elasticsearch.in.sh", "config/elasticsearch/elasticsearch.in.sh"
|
13
|
+
say "Run elasticsearch with springboard -c config/elasticsearch to use your new config."
|
14
|
+
say "Check here for more configuration options:"
|
15
|
+
say " https://github.com/elasticsearch/elasticsearch/blob/master/config/elasticsearch.yml"
|
13
16
|
end
|
14
17
|
|
15
18
|
|
@@ -3,5 +3,10 @@ cluster.name: <%= application_name %>
|
|
3
3
|
path.data: db/elasticsearch
|
4
4
|
path.logs: log
|
5
5
|
|
6
|
+
# disable cluster discovery
|
6
7
|
discovery.zen.ping.multicast.enabled: false
|
7
8
|
discovery.zen.ping.unicast.hosts: []
|
9
|
+
|
10
|
+
# disable index sharding and replication
|
11
|
+
index.number_of_shards: 1
|
12
|
+
index.number_of_replicas: 0
|
data/lib/springboard/version.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,32 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: springboard
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.18.7.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 18
|
9
|
-
- 7
|
10
|
-
version: 0.18.7
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Grant Rodgers
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2012-01-12 00:00:00 Z
|
12
|
+
date: 2012-01-16 00:00:00.000000000Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
14
|
description: Run elasticsearch as a gem binary
|
22
|
-
email:
|
15
|
+
email:
|
23
16
|
- grantr@gmail.com
|
24
|
-
executables:
|
25
|
-
- elasticsearch
|
17
|
+
executables:
|
26
18
|
- es_plugin
|
19
|
+
- springboard
|
27
20
|
extensions: []
|
28
|
-
|
29
21
|
extra_rdoc_files: []
|
30
|
-
|
31
|
-
files:
|
22
|
+
files:
|
32
23
|
- .gitignore
|
33
24
|
- Gemfile
|
34
25
|
- LICENSE
|
35
26
|
- README.md
|
36
27
|
- Rakefile
|
37
|
-
- bin/elasticsearch
|
38
28
|
- bin/es_plugin
|
29
|
+
- bin/springboard
|
39
30
|
- lib/springboard.rb
|
40
31
|
- lib/springboard/generators/USAGE
|
41
32
|
- lib/springboard/generators/config_generator.rb
|
@@ -78,37 +69,27 @@ files:
|
|
78
69
|
- vendor/elasticsearch/lib/sigar/sigar-1.6.4.jar
|
79
70
|
homepage: http://github.com/grantr/springboard
|
80
71
|
licenses: []
|
81
|
-
|
82
72
|
post_install_message:
|
83
73
|
rdoc_options: []
|
84
|
-
|
85
|
-
require_paths:
|
74
|
+
require_paths:
|
86
75
|
- lib
|
87
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
88
77
|
none: false
|
89
|
-
requirements:
|
90
|
-
- -
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
|
93
|
-
|
94
|
-
- 0
|
95
|
-
version: "0"
|
96
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ! '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
83
|
none: false
|
98
|
-
requirements:
|
99
|
-
- -
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
|
102
|
-
segments:
|
103
|
-
- 0
|
104
|
-
version: "0"
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
105
88
|
requirements: []
|
106
|
-
|
107
89
|
rubyforge_project:
|
108
|
-
rubygems_version: 1.8.
|
90
|
+
rubygems_version: 1.8.10
|
109
91
|
signing_key:
|
110
92
|
specification_version: 3
|
111
|
-
summary: Packages up elasticsearch in a gem and adds a ruby executable to run it easily
|
93
|
+
summary: Packages up elasticsearch in a gem and adds a ruby executable to run it easily
|
94
|
+
with relative config paths. Makes elasticsearch dead simple to develop with.
|
112
95
|
test_files: []
|
113
|
-
|
114
|
-
has_rdoc:
|
data/bin/elasticsearch
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'pathname'
|
4
|
-
|
5
|
-
# Not using optparse or trollop because they raise on unknown args, and
|
6
|
-
# we want to pass all unknown args to elasticsearch.
|
7
|
-
args = ARGV.join(" ")
|
8
|
-
if args =~ /(-c [\w\/]+)/
|
9
|
-
conf = Pathname.new(args.slice!($1).sub("-c ",''))
|
10
|
-
conf = Pathname.new(File.expand_path(conf, Dir.pwd)) if conf.relative?
|
11
|
-
ENV['ES_JAVA_OPTS'] = "-Des.path.conf=#{conf}"
|
12
|
-
|
13
|
-
if es_include = conf.entries.detect { |p| p.to_s == "elasticsearch.in.sh" }
|
14
|
-
ENV['ES_INCLUDE'] = es_include.expand_path conf
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
exec File.expand_path("../vendor/elasticsearch/bin/elasticsearch", File.dirname(__FILE__)), args.strip
|