Sha256: 27118ff92db554a51b4ee731888761983c761d8f9630d43a4d1ceca747226718
Contents?: true
Size: 584 Bytes
Versions: 4
Compression:
Stored size: 584 Bytes
Contents
module Bib module Opsworks class Composer def copy_vendor(release_path, deploy_user) app_current = ::File.expand_path("#{release_path}/../../current") vendor_dir = "#{app_current}/vendor" deploy_username = deploy_user['user'] deploy_group = deploy_user['group'] release_vendor = "#{release_path}/vendor" ::FileUtils.cp_r vendor_dir, release_vendor if ::File.exists?(vendor_dir) ::FileUtils.chown_R deploy_username, deploy_group, release_vendor if ::File.exists?(release_vendor) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems