canzea 0.1.16 → 0.1.17

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: f9f4b0e5f38e31804eb54c4c6976ea15735b4340
4
- data.tar.gz: d40fac69e448604c06dd0b7f8b1d40591b11bbb4
3
+ metadata.gz: b0eeab164cd511b3e24d5955dcb5962a2403c575
4
+ data.tar.gz: 0cbd2dc1d8acc4eb1f63febd3966b0f11219908b
5
5
  SHA512:
6
- metadata.gz: 15fc0a9cdab09ee6597e4abb050198587762a5bef0697da408742fa91ec713308ab172b016949eea219b3f3b3f44bfa4fd96d0bbdc03c6ba7fd8920c8d4f81f8
7
- data.tar.gz: cec393f21a75c25080aa5476e3bd822b68846f5f6b4b97c4c3184367893097afbd788270e0f6f711e2edc143a022c9dfc41338a8ee07d9e30e9044f5fc546405
6
+ metadata.gz: b701feb0499154000c88170d6acb9a5daa2e8803a8f11c46cc1efeb3f169e133da7e27d28dd509f6233c5f8b9f8187fd6d04f59551309812fdd291f40e8277da
7
+ data.tar.gz: 357539c643d221932ef4312ed882fe342f6981936f09c767d407d1d7247fbaf1c9250710bbc494162d53e9b09f715a50a80c0905707fb305236bdc7304cb7f89
@@ -1,3 +1,3 @@
1
1
  module Canzea
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.17"
3
3
  end
@@ -6,7 +6,11 @@ class ConfigGitCommit
6
6
  def do(gitRoot, sourcePath, template, parameters = {})
7
7
  # if file exists on file system and does not exist in gitRoot, then commit the "oem" file
8
8
 
9
- dest = "#{gitRoot}/config#{Pathname.new(sourcePath).realpath}"
9
+ if (File.exists?(sourcePath))
10
+ dest = "#{gitRoot}/config#{Pathname.new(sourcePath).realpath}"
11
+ else
12
+ dest = "#{gitRoot}/config#{sourcePath}"
13
+ end
10
14
  puts "Writing to #{dest}"
11
15
 
12
16
  if (File.exist?(dest) == false and File.exist?(sourcePath))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canzea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Canzea Technologies