luban-elasticsearch 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b316fa86477b58c6a0bc76e29f4ecdb4c120eb2
4
- data.tar.gz: fd1a2d018004ea76290dc70adc1e45064487b307
3
+ metadata.gz: d82fd94764a5ed6bb5d23a835e40546a9e9f372c
4
+ data.tar.gz: 4ea442ef569dd2a5d52f42d6bb9cca14199d017e
5
5
  SHA512:
6
- metadata.gz: c84f7d17245f6cb851481b6d19c3a29f499af9aaad8875664eef69ac15d0dcf2c1ead5470f6403398ea4617ef1c2f0982e62d76c6ec25235ee01e9a27f8e2fea
7
- data.tar.gz: 5457a5b108ebc733edf2feba7471520821d606af36c211a020de9e4835771a84eb9f9769040a2564b73e94f9771de04c4a1e9efa106271980b72f651ddd6981a
6
+ metadata.gz: fc2d2c3104183d735fc50caf1c3077857c16d7cb99915ee50ff325534b59a702ca75e4ce3b23ce93672bb734f960400b2545969f10c19a551b55356bd8ddfd2a
7
+ data.tar.gz: 2c501e2aee218c4a4f1513a518f69fbf5632da881e2efc8144b3b2faed48aab4dcf9a44e1c9375e5f35b0372e6ecfd92461349d92cc44b5e0de7096fb1341dcc
data/CHANGLOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.1.5 (Oct 19, 2016)
4
+
5
+ Minor enhancements:
6
+ * Created symlinks for log_path to elasticsearch logs
7
+ * Utilized new parameters, #logrotate_max_age, #logrotate_count, from Luban to unify logrotate setup
8
+ * Bump up gem dependency of Luban to version 0.9.8
9
+
3
10
  ## Version 0.1.4 (Oct 17, 2016)
4
11
 
5
12
  Bug fixes:
@@ -10,11 +10,6 @@ module Luban
10
10
  def data_path
11
11
  @data_path ||= shared_path.join('data')
12
12
  end
13
-
14
- def log_path
15
- @log_path ||= shared_path.join('logs')
16
- end
17
- alias_method :logs_path, :log_path
18
13
  end
19
14
 
20
15
  module Parameters
@@ -23,7 +23,6 @@ module Luban
23
23
 
24
24
  def init
25
25
  super
26
- linked_dirs.delete('log')
27
26
  linked_dirs.push('data', 'logs')
28
27
  linked_files.push('elasticsearch.yml', 'logging.yml')
29
28
  end
@@ -34,6 +33,11 @@ module Luban
34
33
  execute(:mv, build_path.join('*'), '.', ">> #{install_log_file_path} 2>&1")
35
34
  end
36
35
  end
36
+
37
+ def create_symlinks!
38
+ super
39
+ assure_symlink(log_path, install_path.join('logs'))
40
+ end
37
41
  end
38
42
  end
39
43
  end
@@ -3,8 +3,8 @@
3
3
  <%= log_path.join("*.log") %> {
4
4
  daily
5
5
  maxsize 5M
6
- maxage 14
7
- rotate <%= 14 * 24 * (60 / 10) %>
6
+ maxage <%= logrotate_max_age %>
7
+ rotate <%= logrotate_count %>
8
8
  missingok
9
9
  compress
10
10
  compresscmd <%= `which gzip`.chomp %>
@@ -34,7 +34,7 @@ path.data: <%= data_path %>
34
34
  #
35
35
  # Path to log files:
36
36
  #
37
- path.logs: <%= logs_path %>
37
+ path.logs: <%= log_path %>
38
38
  #
39
39
  # ----------------------------------- Memory -----------------------------------
40
40
  #
@@ -2,7 +2,7 @@ module Luban
2
2
  module Deployment
3
3
  module Packages
4
4
  class Elasticsearch
5
- VERSION = '0.1.4'
5
+ VERSION = '0.1.5'
6
6
  end
7
7
  end
8
8
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.required_ruby_version = ">= 2.1.0"
23
- spec.add_dependency 'luban', ">= 0.9.0"
23
+ spec.add_dependency 'luban', ">= 0.9.8"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.12"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Chi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-17 00:00:00.000000000 Z
11
+ date: 2016-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0
19
+ version: 0.9.8
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.9.0
26
+ version: 0.9.8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement