clenver 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/features/init/links.feature +4 -4
- data/lib/clenver/link.rb +1 -1
- data/lib/clenver/repository.rb +1 -1
- data/lib/clenver/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41e709068ccbe0df5d1421cdfce4f7f5b644f38c
|
4
|
+
data.tar.gz: f8844bb558cd27267ea399286363884f9cf5f515
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79d142cc027553acac97520d4fc4e844bec6e62135093039ee102d9ad5ee787b287a30709330a1ed026f6b9ffcd5fffb7162115f635c668c3f99e0b456bacb24
|
7
|
+
data.tar.gz: 900c560f676f3b128d64722f94fcb4896c3419344cc4d7394e8ef7d4349623ffbadfa54f56851a93292b812e9545a853fbca04a1e7f2f6f4eb4e2a1efb0c90f4
|
data/Gemfile.lock
CHANGED
data/features/init/links.feature
CHANGED
@@ -44,10 +44,10 @@ Feature: Initialization links
|
|
44
44
|
Given The default aruba timeout is 10 seconds
|
45
45
|
Given a file named "test_repo.yml" with:
|
46
46
|
"""
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
47
|
+
https://github.com/pietrushnic/dummy.git:
|
48
|
+
links:
|
49
|
+
$HOME/foobar.txt:
|
50
|
+
- $HOME/foobar_link
|
51
51
|
"""
|
52
52
|
When I run `clenver init test_repo.yml some_tmp`
|
53
53
|
Then the following links should exist:
|
data/lib/clenver/link.rb
CHANGED
data/lib/clenver/repository.rb
CHANGED
@@ -24,7 +24,7 @@ class Repository
|
|
24
24
|
def get_dst(config)
|
25
25
|
unless config.nil?
|
26
26
|
if config.has_key?('dst')
|
27
|
-
return config['dst'][0]
|
27
|
+
return config['dst'][0].gsub(/\$\w+/) {|m| ENV[m[1..-1]]}
|
28
28
|
end
|
29
29
|
end
|
30
30
|
logger.debug("dst:#{Dir::pwd + "/" + File.basename(repo_uri, '.git')}")
|
data/lib/clenver/version.rb
CHANGED