module Perkins::Build::Script::Helpers
Public Instance Methods
announce?(stage)
click to toggle source
# File lib/perkins/build/script/helpers.rb, line 33 def announce?(stage) stage && stage != :after_result end
before_install()
click to toggle source
# File lib/perkins/build/script/helpers.rb, line 29 def before_install puts "before install" end
failure(message)
click to toggle source
# File lib/perkins/build/script/helpers.rb, line 16 def failure(message) echo message raw 'false' end
sh()
click to toggle source
# File lib/perkins/build/script/helpers.rb, line 12 def sh stack.last end
stacking() { |sh| ... }
click to toggle source
# File lib/perkins/build/script/helpers.rb, line 21 def stacking ->(sh) { stack.push(sh) yield(sh) if block_given? stack.pop } end