class ReleaseXing
Constants
- MOVE_TO_TMP_FOLDER
- TMP_FOLDER_NAME
Public Instance Methods
run()
click to toggle source
# File lib/renuo/cli/app/release_xing.rb, line 7 def run checkout_project cmd_in_folder "git remote add -f renuo git@github.com:renuo/xing-campaign.git" cmd_in_folder "git pull" cmd_in_folder "git fetch renuo develop" cmd_in_folder "git subtree pull --prefix public renuo develop --squash" cmd_in_folder "git push" ensure cleanup end
Private Instance Methods
checkout_project()
click to toggle source
# File lib/renuo/cli/app/release_xing.rb, line 20 def checkout_project system "#{MOVE_TO_TMP_FOLDER} && git clone git@gitlab.dc.xing.com:renuo-ag/wunsch-arbeitgeber.xing.com.git" end
cleanup()
click to toggle source
# File lib/renuo/cli/app/release_xing.rb, line 32 def cleanup system("rm -rf #{TMP_FOLDER_NAME}") end
cmd_in_folder(command)
click to toggle source
# File lib/renuo/cli/app/release_xing.rb, line 24 def cmd_in_folder(command) system "#{move_and_cd} && #{command}" end
move_and_cd()
click to toggle source
# File lib/renuo/cli/app/release_xing.rb, line 28 def move_and_cd "#{MOVE_TO_TMP_FOLDER} && cd wunsch-arbeitgeber.xing.com" end