Class: Jets::Code::Dummy

Inherits:
Stager
  • Object
show all
Defined in:
lib/jets/code/dummy.rb

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

#capture, #quiet_sh, #sh

Methods included from Util::Logging

#log

Methods included from Util::Git

#git?, #git_installed?

Instance Method Details

#stage_codeObject



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