af 0.3.18.8 → 0.3.18.10

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.
@@ -57,6 +57,7 @@ module VMC::Cli
57
57
 
58
58
  if apps = manifest["applications"]
59
59
  apps.each do |k, v|
60
+ client.infra = v['infra'] if v['infra']
60
61
  abs = File.expand_path(k, file)
61
62
  if Dir.pwd.start_with? abs
62
63
  manifest = merge_manifest(manifest, v)
@@ -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.reject { |f| File.symlink?(f) }.each do |f|
110
+ files.each do |f|
111
111
  dest = Pathname.new(f).relative_path_from(project_root)
112
- if File.directory?(f)
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
@@ -2,6 +2,6 @@ module VMC
2
2
  module Cli
3
3
  # This version number is used as the RubyGem release version.
4
4
  # The internal VMC version number is VMC::VERSION.
5
- VERSION = '0.3.18.8'
5
+ VERSION = '0.3.18.10'
6
6
  end
7
7
  end
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.8
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-22 00:00:00.000000000 Z
12
+ date: 2012-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure