Fix undefined cask_tokens method.

This commit is contained in:
Markus Reiter 2017-05-23 14:57:51 +02:00
parent d1f599f1ed
commit cc295601c7

View File

@ -9,10 +9,10 @@ module Hbc
end
def run
if cask_tokens.all? { |t| t =~ %r{^https?://} && t !~ /\.rb$/ }
self.class.appcask_checkpoint_for_url(cask_tokens)
if args.all? { |t| t =~ %r{^https?://} && t !~ /\.rb$/ }
self.class.appcask_checkpoint_for_url(args)
else
self.class.appcask_checkpoint(cask_tokens, calculate?)
self.class.appcask_checkpoint(args, calculate?)
end
end