af 0.3.18.8 → 0.3.18.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cli/commands/base.rb +1 -0
- data/lib/cli/file_helper.rb +4 -8
- data/lib/cli/version.rb +1 -1
- metadata +2 -2
data/lib/cli/commands/base.rb
CHANGED
data/lib/cli/file_helper.rb
CHANGED
@@ -107,20 +107,16 @@ module VMC::Cli
|
|
107
107
|
|
108
108
|
def copy_files(project_root,files,dest_dir)
|
109
109
|
project_root = Pathname.new(project_root)
|
110
|
-
files.
|
110
|
+
files.each do |f|
|
111
111
|
dest = Pathname.new(f).relative_path_from(project_root)
|
112
|
-
if File.
|
112
|
+
if File.symlink?(f)
|
113
|
+
FileUtils.copy_entry(f,"#{dest_dir}/#{dest}")
|
114
|
+
elsif File.directory?(f)
|
113
115
|
FileUtils.mkdir_p("#{dest_dir}/#{dest}")
|
114
116
|
else
|
115
117
|
FileUtils.cp(f,"#{dest_dir}/#{dest}")
|
116
118
|
end
|
117
119
|
end
|
118
|
-
root = Pathname.new(project_root).realpath
|
119
|
-
files.select { |f| File.symlink?(f) }.each do |f|
|
120
|
-
dest = Pathname.new(f).relative_path_from(project_root)
|
121
|
-
p = Pathname.new(f).realpath
|
122
|
-
FileUtils.ln_s(p.relative_path_from(root),"#{dest_dir}/#{dest}")
|
123
|
-
end
|
124
120
|
end
|
125
121
|
|
126
122
|
end
|
data/lib/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: af
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.18.
|
4
|
+
version: 0.3.18.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|