instance method
combine
Ruby on Rails 2.11.0
Since v1.9.3 Last seen in v2.11.0 PrivateSignature
combine(*commands, by: "&&")
No documentation comment.
Parameters
-
commandsrest -
bykey = "&&"
Source
# File lib/kamal/commands/base.rb, line 44
def combine(*commands, by: "&&")
commands
.compact
.collect { |command| Array(command) + [ by ] }.flatten # Join commands
.tap { |commands| commands.pop } # Remove trailing combiner
end
Defined in lib/kamal/commands/base.rb line 44
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Kamal::Commands::Base