traquitana 0.0.23 → 0.0.24
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/config.rb +12 -10
- data/lib/traquitana/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88327fd3d5f35014f99afd82879b455f959a7965
|
4
|
+
data.tar.gz: 942dff7c640179a725ecb5f5b6b33c92107ef141
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93cb4cb21d6acf2372e76df399973d94ffc3c6d46ee64a6a7b7d15a25807d4b5f0adfaf7d3c999a1dbdbbbe2cbd8533981a5eda6f1a6851c33b6b0594552990a
|
7
|
+
data.tar.gz: 028196dda4fbbba9b5a25d219ba8662e5db8da76a4b7b165dffcdbd7d0e552fee8a800370d74bfb0430e20be71c46234eb6e355a1fdfd1dc92a4d5245fa03533
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/config.rb
CHANGED
@@ -16,7 +16,9 @@ module Traquitana
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def load(file=nil)
|
19
|
-
@configs = YAML.load(File.read(file || self.filename))
|
19
|
+
@configs = YAML.load(File.read(file || self.filename)) rescue nil
|
20
|
+
return if !@configs
|
21
|
+
|
20
22
|
if @target
|
21
23
|
if !@configs[@target]
|
22
24
|
STDERR.puts "Target #{@target} not found."
|
@@ -36,23 +38,23 @@ module Traquitana
|
|
36
38
|
end
|
37
39
|
|
38
40
|
def setup
|
39
|
-
|
41
|
+
STDOUT.puts "Running setup"
|
40
42
|
if File.exists?(self.filename)
|
41
43
|
STDERR.puts "The configuration file #{self.filename} already exists."
|
42
44
|
return false
|
43
45
|
end
|
44
46
|
|
45
47
|
dir = File.dirname(self.filename)
|
46
|
-
|
48
|
+
Dir.mkdir(dir) if !File.exist?(dir)
|
47
49
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
50
|
+
STDOUT.puts "Writing #{self.filename}"
|
51
|
+
File.open(self.filename,"w") do |file|
|
52
|
+
file << "# Default configuration"
|
53
|
+
file << File.read(self.default)
|
54
|
+
end
|
53
55
|
|
54
|
-
|
55
|
-
|
56
|
+
STDOUT.puts "Setup completed!"
|
57
|
+
STDOUT.puts "You MUST check the configurations on #{self.filename} before deploying!"
|
56
58
|
true
|
57
59
|
end
|
58
60
|
end
|
data/lib/traquitana/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traquitana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eustaquio Rangel
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
6e958yEsqGu5X22/hfQX6TbwN5dkTf9av4WFbxS9bDxu5gnyqxJXeUrDAZLPPxBH
|
31
31
|
CwBApqv5euoeQLG21+zL5rs5OOxFqvx9Qpl4B6Z99Sb9SFbF/lLjKac=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2014-09-
|
33
|
+
date: 2014-09-19 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rubyzip
|
metadata.gz.sig
CHANGED
Binary file
|