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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b178075a225ffbe0091931098afc2ab1d6258da
4
- data.tar.gz: 2c3ba3e03a5ab844634059256e8af065528112fe
3
+ metadata.gz: 88327fd3d5f35014f99afd82879b455f959a7965
4
+ data.tar.gz: 942dff7c640179a725ecb5f5b6b33c92107ef141
5
5
  SHA512:
6
- metadata.gz: 1f20e450a9feec2eb7c8603be9308225e5574b5756424f2adb9a30dbe4b870c47973f7f63ed3802d396cfcb21a81da83e0107786f113cad6c19fa4669f90e0f0
7
- data.tar.gz: 641cc0fed803f3fb3e9a2fa64b115456a88535457a4d8a2d787275d1f5e32526c9d184277e43c1f7c8c0273cacbe8a4d81ea208af3a4e4cd1a4959fcb8769ba0
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
- STDOUT.puts "Running setup"
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
- Dir.mkdir(dir) if !File.exist?(dir)
48
+ Dir.mkdir(dir) if !File.exist?(dir)
47
49
 
48
- STDOUT.puts "Writing #{self.filename}"
49
- File.open(self.filename,"w") do |file|
50
- file << "# Default configuration"
51
- file << File.read(self.default)
52
- end
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
- STDOUT.puts "Setup completed!"
55
- STDOUT.puts "You MUST check the configurations on #{self.filename} before deploying!"
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
@@ -1,3 +1,3 @@
1
1
  module Traquitana
2
- VERSION = "0.0.23"
2
+ VERSION = "0.0.24"
3
3
  end
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.23
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-04 00:00:00.000000000 Z
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