vagrant-layout 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vagrant-layout/command_init.rb +11 -1
- data/lib/vagrant-layout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74e1776f2d37300f362631aa10c18abbcca88a44
|
4
|
+
data.tar.gz: a21a58fa879fba940359b3b89eef9bb86637b40c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e7d8ad1dbcfdc927f9498043db535f615aa16f2052e118cd5b83f0e3f84e1b656b1872610ff877ac77bfbf22ffac98c8f47e1547d868bad9a472fc47345cd68
|
7
|
+
data.tar.gz: db584ca1921540abb5b89e032b97aabea18d52c5310b9b2f8daaec9ed70fd11b875f27ede877578d43adfc8aa029d8e0ee951a1b9ba02947a00a3e7a14456715
|
@@ -72,7 +72,7 @@ module VagrantPlugins
|
|
72
72
|
|
73
73
|
def download_github(root, target)
|
74
74
|
puts "Downloading: #{ target[1] }"
|
75
|
-
targz = File.join(root, 'base.
|
75
|
+
targz = File.join(root, 'base.tar.gz')
|
76
76
|
dest = File.join(root, 'github')
|
77
77
|
extract_tgz(target[1], targz, dest)
|
78
78
|
first_dir(dest)
|
@@ -130,6 +130,10 @@ module VagrantPlugins
|
|
130
130
|
def copy_gist_files(gist_dir, github_dir)
|
131
131
|
Dir.chdir(gist_dir) do
|
132
132
|
Dir.glob('*').each do |file|
|
133
|
+
if file == 'patch'
|
134
|
+
apply_patch(File.join(gist_dir, 'patch'), github_dir)
|
135
|
+
next
|
136
|
+
end
|
133
137
|
dest_file = File.join(github_dir, file.gsub('__', '/'))
|
134
138
|
FileUtils.copy_entry(File.join(gist_dir, file), dest_file)
|
135
139
|
end
|
@@ -142,6 +146,12 @@ module VagrantPlugins
|
|
142
146
|
FileUtils.cp_r(File.join(dir, src), '.')
|
143
147
|
end
|
144
148
|
end
|
149
|
+
|
150
|
+
def apply_patch(patch_file, github_dir)
|
151
|
+
Dir.chdir(github_dir) do
|
152
|
+
puts %x{git apply -v #{patch_file}}
|
153
|
+
end
|
154
|
+
end
|
145
155
|
end
|
146
156
|
end
|
147
157
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-layout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KOSEKI Kengo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|