aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2017-09-17 04:01:32 +0200
committerGitHub2017-09-17 04:01:32 +0200
commite537db28cb6b961deab28dc7487887dfe1e659cf (patch)
treea90c7f347fc801a4cc88743178e6a8aeb50d86c8 /Library
parent2056cd2c90109ab410118442f0aacf73f6fb198c (diff)
parente33623982962612fa7d1737477ba6c60700abdf4 (diff)
downloadbrew-e537db28cb6b961deab28dc7487887dfe1e659cf.tar.bz2
Merge pull request #3160 from reitermarkus/missing-method
Add missing `summarize` method.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/artifact/abstract_flight_block.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/artifact/abstract_flight_block.rb b/Library/Homebrew/cask/lib/hbc/artifact/abstract_flight_block.rb
index 6670d4249..4e8edbc11 100644
--- a/Library/Homebrew/cask/lib/hbc/artifact/abstract_flight_block.rb
+++ b/Library/Homebrew/cask/lib/hbc/artifact/abstract_flight_block.rb
@@ -43,6 +43,10 @@ module Hbc
return if (block = directives[dsl_key]).nil?
class_for_dsl_key(dsl_key).new(cask).instance_eval(&block)
end
+
+ def summarize
+ directives.keys.map(&:to_s).join(", ")
+ end
end
end
end