Skip to content

Commit

Permalink
Fixes forward3d#39 - switched to colorize gem
Browse files Browse the repository at this point in the history
  • Loading branch information
freakphp committed Feb 28, 2015
1 parent fe73ad2 commit 2ff127b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cap-ec2.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
spec.add_dependency "aws-sdk-v1"
spec.add_dependency "capistrano", ">= 3.0"
spec.add_dependency "terminal-table"
spec.add_dependency "colored"
spec.add_dependency "colorize"
end
2 changes: 1 addition & 1 deletion lib/cap-ec2/capistrano.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'capistrano/setup'
require 'capistrano/configuration'
require 'aws-sdk-v1'
require 'colored'
require 'colorize'
require 'terminal-table'
require 'yaml'
require_relative 'utils'
Expand Down
2 changes: 1 addition & 1 deletion lib/cap-ec2/status-table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def instance_to_row(instance, index)

private

(Colored::COLORS.keys + Colored::EXTRAS.keys).each do |format|
(String.colors + String.modes).each do |format|
define_method(format) do |string|
if $stdout.tty?
string.__send__(format)
Expand Down

0 comments on commit 2ff127b

Please sign in to comment.