Fix details in cask command
This commit is contained in:
parent
7fea44ae46
commit
3fd1e914fd
@ -26,10 +26,6 @@ module Hbc
|
|||||||
abstract_phase(self.class.uninstall_dsl_key)
|
abstract_phase(self.class.uninstall_dsl_key)
|
||||||
end
|
end
|
||||||
|
|
||||||
def summarize
|
|
||||||
directives.keys.map(&:to_s).join(", ")
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def class_for_dsl_key(dsl_key)
|
def class_for_dsl_key(dsl_key)
|
||||||
@ -41,6 +37,10 @@ module Hbc
|
|||||||
return if (block = directives[dsl_key]).nil?
|
return if (block = directives[dsl_key]).nil?
|
||||||
class_for_dsl_key(dsl_key).new(cask).instance_eval(&block)
|
class_for_dsl_key(dsl_key).new(cask).instance_eval(&block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def summarize
|
||||||
|
directives.keys.map(&:to_s).join(", ")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -139,10 +139,10 @@ module Hbc
|
|||||||
"version" => version,
|
"version" => version,
|
||||||
"sha256" => sha256,
|
"sha256" => sha256,
|
||||||
"artifacts" => artifacts.map do |a|
|
"artifacts" => artifacts.map do |a|
|
||||||
if a.respond_to? :to_a
|
if a.respond_to? :to_h
|
||||||
a.to_a
|
|
||||||
elsif a.methods.include? :to_h
|
|
||||||
a.to_h
|
a.to_h
|
||||||
|
elsif a.respond_to? :to_a
|
||||||
|
a.to_a
|
||||||
else
|
else
|
||||||
a
|
a
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user