Class: Jets::Code::Dummy
Instance Method Summary collapse
Methods inherited from Stager
#auto_strategy, #build, #clean, #copy_strategy, #move_ruby_version, #rsync_installed?, #save_deploy_user, #save_project_name, #save_ruby_version, #touch_deployed_at, #warn_large_codebase
Methods included from Util::Sh
Methods included from Util::Logging
Methods included from Util::Git
Instance Method Details
#stage_code ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/jets/code/dummy.rb', line 3 def stage_code # copies jets config return unless File.exist?("#{Jets.root}/config/jets") FileUtils.rm_rf("#{build_root}/stage/code/config/jets") FileUtils.mkdir_p("#{build_root}/stage/code/config") FileUtils.cp_r("#{Jets.root}/config/jets", "#{build_root}/stage/code/config/jets") end |