class T1k::Commands::Hack
Public Class Methods
run(path_card_part)
click to toggle source
# File lib/t1k/commands/hack.rb, line 5 def self.run(path_card_part) T1k.setup_credentials code_card = "CARD#{T1k::hack path_card_part}" system 'git checkout master' system 'git pull --rebase origin master' existent_branch = `git branch --list #{code_card}` if existent_branch.present? system "git checkout #{code_card}" else system "git checkout -b #{code_card}" end end