pansophy 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/lib/pansophy/config_synchronizer.rb +2 -4
- data/lib/pansophy/tasks.rb +1 -0
- data/lib/pansophy/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89b8207e34ab60ab9b12ff417232c439a6792f7e
|
4
|
+
data.tar.gz: a5e0c1a753943baedc19be2c0b69e23c8446246b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75df6e2c4f24136f1e60f816d234bf7546369b5c0b64cd61c73687c9919acad4e1284e31e9e548ceb2c62a1b45a4332857b3206a6ae805e39e41776574b97f8e
|
7
|
+
data.tar.gz: 22070f0b09af3f61485eb05f50c32e810ab22deb8ceab944742cad8706f86802eb80e11636ae2f5811e3cf8a00380b260d3860255bcdf91f31699262eaa56a0f
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.2.3
|
@@ -6,10 +6,8 @@ module Pansophy
|
|
6
6
|
attr_writer :config_bucket_name, :config_remote_folder, :config_local_folder, :version
|
7
7
|
|
8
8
|
def merge
|
9
|
-
puts "Fetching remote configuration (version #{VERSION})"
|
10
9
|
verify_config_bucket_name!
|
11
10
|
Pansophy.merge(config_bucket_name, remote_path, local_path, overwrite: true)
|
12
|
-
puts 'done'
|
13
11
|
end
|
14
12
|
|
15
13
|
def config_bucket_name
|
@@ -17,7 +15,7 @@ module Pansophy
|
|
17
15
|
end
|
18
16
|
|
19
17
|
def config_remote_folder
|
20
|
-
@config_remote_folder ||= (
|
18
|
+
@config_remote_folder ||= ENV.fetch('CONFIG_REMOTE_FOLDER', 'config')
|
21
19
|
end
|
22
20
|
|
23
21
|
def config_local_folder
|
@@ -25,7 +23,7 @@ module Pansophy
|
|
25
23
|
end
|
26
24
|
|
27
25
|
def version
|
28
|
-
@version ||= (
|
26
|
+
@version ||= ENV.fetch('CONFIG_VERSION', '1.0')
|
29
27
|
end
|
30
28
|
|
31
29
|
private
|
data/lib/pansophy/tasks.rb
CHANGED
@@ -4,6 +4,7 @@ namespace :pansophy do
|
|
4
4
|
task :synchronize do
|
5
5
|
require 'pansophy/config_synchronizer'
|
6
6
|
synchronizer = Pansophy::ConfigSynchronizer.new
|
7
|
+
puts "Pansophy version #{Pansophy::VERSION}"
|
7
8
|
puts "Fetching remote configuration (version #{synchronizer.version})"
|
8
9
|
synchronizer.merge
|
9
10
|
puts "Done"
|
data/lib/pansophy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pansophy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Berardi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-aws
|
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
223
|
version: '0'
|
224
224
|
requirements: []
|
225
225
|
rubyforge_project:
|
226
|
-
rubygems_version: 2.4.5
|
226
|
+
rubygems_version: 2.4.5.1
|
227
227
|
signing_key:
|
228
228
|
specification_version: 4
|
229
229
|
summary: Information sharing via centralised repository
|