diff options
| author | Markus Reiter | 2017-05-20 19:11:34 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-05-22 02:51:17 +0200 |
| commit | debe4540e4ff76be80467a2bf32bfd32dbfc72eb (patch) | |
| tree | 25b07ca8dfded0039587c44566f708926c6f389e | |
| parent | acc7309ca34a28d340583bad619e236b6bc78e52 (diff) | |
| download | brew-debe4540e4ff76be80467a2bf32bfd32dbfc72eb.tar.bz2 | |
Remove redundant `self.run` methods.
20 files changed, 0 insertions, 80 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/--version.rb b/Library/Homebrew/cask/lib/hbc/cli/--version.rb index 23ecde0cc..7f9609c88 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/--version.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/--version.rb @@ -5,10 +5,6 @@ module Hbc "--#{super}" end - def self.run(*args) - new(*args).run - end - def run raise ArgumentError, "#{self.class.command_name} does not take arguments." unless @args.empty? puts Hbc.full_version diff --git a/Library/Homebrew/cask/lib/hbc/cli/audit.rb b/Library/Homebrew/cask/lib/hbc/cli/audit.rb index 06cccb6ac..697b47ba6 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/audit.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/audit.rb @@ -5,10 +5,6 @@ module Hbc "verifies installability of Casks" end - def self.run(*args) - new(*args).run - end - def initialize(*args, auditor: Auditor) @args = args @auditor = auditor diff --git a/Library/Homebrew/cask/lib/hbc/cli/cat.rb b/Library/Homebrew/cask/lib/hbc/cli/cat.rb index ca7225926..9c678454c 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/cat.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/cat.rb @@ -1,10 +1,6 @@ module Hbc class CLI class Cat < AbstractCommand - def self.run(*args) - new(*args).run - end - def run cask_tokens = self.class.cask_tokens_from(@args) raise CaskUnspecifiedError if cask_tokens.empty? diff --git a/Library/Homebrew/cask/lib/hbc/cli/cleanup.rb b/Library/Homebrew/cask/lib/hbc/cli/cleanup.rb index c605fea7c..72ba9e65f 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/cleanup.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/cleanup.rb @@ -12,10 +12,6 @@ module Hbc true end - def self.run(*args) - new(*args).run - end - attr_reader :cache_location, :outdated_only def initialize(*args, cache_location: Hbc.cache, outdated_only: CLI.outdated?) diff --git a/Library/Homebrew/cask/lib/hbc/cli/create.rb b/Library/Homebrew/cask/lib/hbc/cli/create.rb index 09de66649..dc8666b37 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/create.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/create.rb @@ -1,10 +1,6 @@ module Hbc class CLI class Create < AbstractCommand - def self.run(*args) - new(*args).run - end - def run cask_tokens = self.class.cask_tokens_from(@args) raise CaskUnspecifiedError if cask_tokens.empty? diff --git a/Library/Homebrew/cask/lib/hbc/cli/edit.rb b/Library/Homebrew/cask/lib/hbc/cli/edit.rb index f1797de1c..d8ab3d9e0 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/edit.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/edit.rb @@ -1,10 +1,6 @@ module Hbc class CLI class Edit < AbstractCommand - def self.run(*args) - new(*args).run - end - def run cask_tokens = self.class.cask_tokens_from(@args) raise CaskUnspecifiedError if cask_tokens.empty? diff --git a/Library/Homebrew/cask/lib/hbc/cli/fetch.rb b/Library/Homebrew/cask/lib/hbc/cli/fetch.rb index 0d1a91e85..2dc02aaf7 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/fetch.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/fetch.rb @@ -1,10 +1,6 @@ module Hbc class CLI class Fetch < AbstractCommand - def self.run(*args) - new(*args).run - end - def run cask_tokens = self.class.cask_tokens_from(@args) raise CaskUnspecifiedError if cask_tokens.empty? diff --git a/Library/Homebrew/cask/lib/hbc/cli/info.rb b/Library/Homebrew/cask/lib/hbc/cli/info.rb index 6813ad63f..1a63b7747 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/info.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/info.rb @@ -1,10 +1,6 @@ module Hbc class CLI class Info < AbstractCommand - def self.run(*args) - new(*args).run - end - def initialize(*args) @cask_tokens = self.class.cask_tokens_from(args) raise CaskUnspecifiedError if @cask_tokens.empty? diff --git a/Library/Homebrew/cask/lib/hbc/cli/install.rb b/Library/Homebrew/cask/lib/hbc/cli/install.rb index cec4d0f2b..fc9ba97fa 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/install.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/install.rb @@ -1,10 +1,6 @@ module Hbc class CLI class Install < AbstractCommand - def self.run(*args) - new(*args).run - end - def initialize(*args) @cask_tokens = self.class.cask_tokens_from(args) raise CaskUnspecifiedError if @cask_tokens.empty? diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_appcast_checkpoint.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_appcast_checkpoint.rb index e3045d289..ed90bc4a9 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_appcast_checkpoint.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/internal_appcast_checkpoint.rb @@ -1,10 +1,6 @@ module Hbc class CLI class InternalAppcastCheckpoint < AbstractInternalCommand - def self.run(*args) - new(*args).run - end - def initialize(*args) @cask_tokens = cask_tokens_from(args) raise CaskUnspecifiedError if cask_tokens.empty? diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb index 5bf73135a..e1b0e4791 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb @@ -7,10 +7,6 @@ module Hbc true end - def self.run(*args) - new(*args).run - end - def initialize(*args) @commit_range = self.class.commit_range(args) @cleanup = args.any? { |a| a =~ /^-+c(leanup)?$/i } diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_checkurl.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_checkurl.rb index 06487597e..b0378cfd5 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_checkurl.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/internal_checkurl.rb @@ -1,10 +1,6 @@ module Hbc class CLI class InternalCheckurl < AbstractInternalCommand - def self.run(*args) - new(*args).run - end - def run casks_to_check = @args.empty? ? Hbc.all : @args.map { |arg| CaskLoader.load(arg) } casks_to_check.each do |cask| diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb index 2202a737c..6a0d458cf 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb @@ -1,10 +1,6 @@ module Hbc class CLI class InternalDump < AbstractInternalCommand - def self.run(*args) - new(*args).run - end - def initialize(*args) @cask_tokens = self.class.cask_tokens_from(args) raise CaskUnspecifiedError if @cask_tokens.empty? diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_help.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_help.rb index 3645d9138..79f65da0e 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_help.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/internal_help.rb @@ -1,10 +1,6 @@ module Hbc class CLI class InternalHelp < AbstractInternalCommand - def self.run(*args) - new(*args).run - end - def run max_command_len = CLI.commands.map(&:length).max puts "Unstable Internal-use Commands:\n\n" diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb index 82cf981fd..75ccfef02 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb @@ -50,10 +50,6 @@ module Hbc :uninstall_postflight, ] - def self.run(*args) - new(*args).run - end - def initialize(*args) raise ArgumentError, "No stanza given." if args.empty? diff --git a/Library/Homebrew/cask/lib/hbc/cli/list.rb b/Library/Homebrew/cask/lib/hbc/cli/list.rb index 884203254..79f7687e1 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/list.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/list.rb @@ -1,10 +1,6 @@ module Hbc class CLI class List < AbstractCommand - def self.run(*args) - new(*args).run - end - def initialize(*args) @cask_tokens = self.class.cask_tokens_from(args) @one = true if args.delete("-1") diff --git a/Library/Homebrew/cask/lib/hbc/cli/outdated.rb b/Library/Homebrew/cask/lib/hbc/cli/outdated.rb index 7a5485344..c56e28e28 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/outdated.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/outdated.rb @@ -1,10 +1,6 @@ module Hbc class CLI class Outdated < AbstractCommand - def self.run(*args) - new(*args).run - end - def initialize(*args) @cask_tokens = self.class.cask_tokens_from(args) diff --git a/Library/Homebrew/cask/lib/hbc/cli/search.rb b/Library/Homebrew/cask/lib/hbc/cli/search.rb index 3ad1dd4da..255010bae 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/search.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/search.rb @@ -1,10 +1,6 @@ module Hbc class CLI class Search < AbstractCommand - def self.run(*args) - new(*args).run - end - def run self.class.render_results(*self.class.search(*@args)) end diff --git a/Library/Homebrew/cask/lib/hbc/cli/uninstall.rb b/Library/Homebrew/cask/lib/hbc/cli/uninstall.rb index dea6a8e5f..55c733108 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/uninstall.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/uninstall.rb @@ -1,10 +1,6 @@ module Hbc class CLI class Uninstall < AbstractCommand - def self.run(*args) - new(*args).run - end - def initialize(*args) @cask_tokens = self.class.cask_tokens_from(args) raise CaskUnspecifiedError if @cask_tokens.empty? diff --git a/Library/Homebrew/cask/lib/hbc/cli/zap.rb b/Library/Homebrew/cask/lib/hbc/cli/zap.rb index df40894af..61a0df27c 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/zap.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/zap.rb @@ -1,10 +1,6 @@ module Hbc class CLI class Zap < AbstractCommand - def self.run(*args) - new(*args).run - end - def initialize(*args) @cask_tokens = self.class.cask_tokens_from(args) raise CaskUnspecifiedError if @cask_tokens.empty? |
