vmc 0.3.16.beta.1 → 0.3.16.beta.2
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.
- data/lib/cli/commands/apps.rb +15 -5
- data/lib/cli/commands/base.rb +1 -1
- data/lib/cli/tunnel_helper.rb +1 -1
- data/lib/cli/version.rb +1 -1
- metadata +2 -2
data/lib/cli/commands/apps.rb
CHANGED
@@ -336,11 +336,21 @@ module VMC::Cli::Command
|
|
336
336
|
|
337
337
|
def check_unreachable_links(path)
|
338
338
|
files = Dir.glob("#{path}/**/*", File::FNM_DOTMATCH)
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
339
|
+
|
340
|
+
pwd = Pathname.pwd
|
341
|
+
|
342
|
+
abspath = File.expand_path(path)
|
343
|
+
unreachable = []
|
344
|
+
files.each do |f|
|
345
|
+
file = Pathname.new(f)
|
346
|
+
if file.symlink? && !file.realpath.to_s.start_with?(abspath)
|
347
|
+
unreachable << file.relative_path_from(pwd)
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
351
|
+
unless unreachable.empty?
|
352
|
+
root = Pathname.new(path).relative_path_from(pwd)
|
353
|
+
err "Can't deploy application containing links '#{unreachable}' that reach outside its root '#{root}'"
|
344
354
|
end
|
345
355
|
end
|
346
356
|
|
data/lib/cli/commands/base.rb
CHANGED
data/lib/cli/tunnel_helper.rb
CHANGED
data/lib/cli/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: vmc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 7
|
5
|
-
version: 0.3.16.beta.
|
5
|
+
version: 0.3.16.beta.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- VMware
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-01-
|
13
|
+
date: 2012-01-17 00:00:00 -08:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|