Class: T1k::Commands::Sink

Inherits:
Object
  • Object
show all
Defined in:
lib/t1k/commands/sink.rb

Class Method Summary collapse

Class Method Details

.rebasing(branch) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/t1k/commands/sink.rb', line 10

def self.rebasing(branch)
  [
    "git checkout master",
    "git pull --rebase origin master",
    "git checkout #{branch}",
    "git merge master"
  ].each do |cmd|
    system cmd
  end
end

.runObject



4
5
6
7
8
# File 'lib/t1k/commands/sink.rb', line 4

def self.run
  T1k.setup_credentials
  branch = T1k::Commands::Branch.actual_branch
  self.rebasing(branch)
end