diff options
| author | AnastasiaSulyagina | 2016-08-23 09:11:09 +0300 |
|---|---|---|
| committer | AnastasiaSulyagina | 2016-08-23 23:44:45 +0300 |
| commit | 65579f27dd905e4026bb514f60e875cfc41cc368 (patch) | |
| tree | 987493e2627feb20b5d94a6e08d770940218dcb6 /Library/Homebrew/cask/lib/hbc/cli | |
| parent | 0dbf485c4fc19663ba1eeb6fbe62be9c378a305c (diff) | |
| download | brew-65579f27dd905e4026bb514f60e875cfc41cc368.tar.bz2 | |
cask tty removed
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/doctor.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/info.rb | 6 | ||||
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/style.rb | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb index 57ab22e3e..857471420 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb @@ -124,11 +124,11 @@ class Hbc::CLI::Doctor < Hbc::CLI::Base end def self.notfound_string - "#{Hbc::Utils::Tty.red.underline}Not Found - Unknown Error#{Hbc::Utils::Tty.reset}" + "#{Tty.red}Not Found - Unknown Error#{Tty.reset}" end def self.error_string(string = "Error") - "#{Hbc::Utils::Tty.red.underline}(#{string})#{Hbc::Utils::Tty.reset}" + "#{Tty.red}(#{string})#{Tty.reset}" end def self.render_with_none(string) diff --git a/Library/Homebrew/cask/lib/hbc/cli/info.rb b/Library/Homebrew/cask/lib/hbc/cli/info.rb index dda405705..76f2d1366 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/info.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/info.rb @@ -25,7 +25,7 @@ class Hbc::CLI::Info < Hbc::CLI::Base end def self.formatted_url(url) - "#{Hbc::Utils::Tty.underline}#{url}#{Hbc::Utils::Tty.reset}" + "#{Tty.em}#{url}#{Tty.reset}" end def self.installation_info(cask) @@ -35,7 +35,7 @@ class Hbc::CLI::Info < Hbc::CLI::Base puts versioned_staged_path.to_s .concat(" (") - .concat(versioned_staged_path.exist? ? versioned_staged_path.abv : "#{Hbc::Utils::Tty.red}does not exist#{Hbc::Utils::Tty.reset}") + .concat(versioned_staged_path.exist? ? versioned_staged_path.abv : "#{Tty.red}does not exist#{Tty.reset}") .concat(")") end else @@ -45,7 +45,7 @@ class Hbc::CLI::Info < Hbc::CLI::Base def self.name_info(cask) ohai cask.name.size > 1 ? "Names" : "Name" - puts cask.name.empty? ? "#{Hbc::Utils::Tty.red}None#{Hbc::Utils::Tty.reset}" : cask.name + puts cask.name.empty? ? "#{Tty.red}None#{Tty.reset}" : cask.name end def self.github_info(cask) diff --git a/Library/Homebrew/cask/lib/hbc/cli/style.rb b/Library/Homebrew/cask/lib/hbc/cli/style.rb index ac7cbfb44..8793d2afd 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/style.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/style.rb @@ -28,7 +28,7 @@ class Hbc::CLI::Style < Hbc::CLI::Base begin Homebrew.install_gem_setup_path! "rubocop-cask", RUBOCOP_CASK_VERSION, "rubocop" rescue SystemExit - raise Hbc::CaskError, $stderr.string.chomp.sub("#{::Tty.red}Error#{::Tty.reset}: ", "") + raise Hbc::CaskError, $stderr.string.chomp.sub("#{Tty.red}Error#{Tty.reset}: ", "") end end end |
