Commit 8e126d17 authored by Fabio Pelosin's avatar Fabio Pelosin

Merge pull request #231 from CocoaPods/no-color

[Pod::Command] Added --no-color option
parents 11616843 82372f34
......@@ -88,6 +88,8 @@ module Pod
Config.instance.silent = argv.option('--silent')
Config.instance.verbose = argv.option('--verbose')
String.send(:define_method, :colorize) { return self } if argv.option('--no-color')
command_class = case argv.shift_argument
when 'install' then Install
when 'repo' then Repo
......
......@@ -2,6 +2,7 @@ require File.expand_path('../../../spec_helper', __FILE__)
describe Pod::Command::Spec do
extend SpecHelper::Command
extend SpecHelper::TemporaryDirectory
it "complains for wrong parameters" do
lambda { run_command('spec') }.should.raise Pod::Command::Help
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment