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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73ddd9ac2f7cad2e705aee342f12c58e5d705069
4
- data.tar.gz: 3ede32863115db622a18260426edc254dbffc3e5
3
+ metadata.gz: 74e1776f2d37300f362631aa10c18abbcca88a44
4
+ data.tar.gz: a21a58fa879fba940359b3b89eef9bb86637b40c
5
5
  SHA512:
6
- metadata.gz: e0e65c0b69596edfb8d1f3caac4d10b65ddaef4b552d000df60fbc8fb95bf9a9b945d5122e36db9d15906eab586319249dcb5936e0947b9e74dad41541fe7622
7
- data.tar.gz: 30c31beb60abf06f088918cb607ef7b7ed0bcb299d050dc566c0b0c62a83d1df49049abad248dac70de6e5f8de7fdf331dde9cabd5ed231d304499d16ec259e0
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.targz')
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
@@ -3,6 +3,6 @@ module VagrantPlugins
3
3
  # Vagrant Layout Plugin
4
4
  #
5
5
  module Layout
6
- VERSION = '0.0.3'
6
+ VERSION = '0.0.4'
7
7
  end
8
8
  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.3
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-30 00:00:00.000000000 Z
11
+ date: 2014-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler