tool/merger.rb: Avoid making too-deep indentation

because it's hard to understand what's going on when indentation depth
is too deep.

Sorry for polluting git blame, but most of the Merger's lines are
updated recently anyway.
This commit is contained in:
Takashi Kokubun 2019-04-29 00:57:34 +09:00
Родитель 2dddd370a1
Коммит 991e32681e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 6FFC433B12EE23DD
1 изменённых файлов: 167 добавлений и 167 удалений

Просмотреть файл

@ -16,10 +16,11 @@ ENV['LC_ALL'] = 'C'
module Merger module Merger
REPOS = 'svn+ssh://svn@ci.ruby-lang.org/ruby/' REPOS = 'svn+ssh://svn@ci.ruby-lang.org/ruby/'
end
class << self class << Merger
def help def help
puts <<-end puts <<-HELP
\e[1msimple backport\e[0m \e[1msimple backport\e[0m
ruby #$0 1234 ruby #$0 1234
@ -45,7 +46,7 @@ module Merger
ruby #$0 removetag 2.2.9 ruby #$0 removetag 2.2.9
\e[33;1m* all operations shall be applied to the working directory.\e[0m \e[33;1m* all operations shall be applied to the working directory.\e[0m
end HELP
end end
def interactive(str, editfile = nil) def interactive(str, editfile = nil)
@ -229,8 +230,7 @@ module Merger
puts "+ #{cmd.shelljoin}" puts "+ #{cmd.shelljoin}"
system(*cmd) system(*cmd)
end end
end # class << self end
end # module Merger
case ARGV[0] case ARGV[0]
when "teenyup" when "teenyup"