Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method light_black #18

Open
mantap123 opened this issue Dec 3, 2016 · 0 comments
Open

undefined method light_black #18

mantap123 opened this issue Dec 3, 2016 · 0 comments

Comments

@mantap123
Copy link
Contributor

I am using Capistrano for continuous deployment of my Ruby on Rails and NodeJS applications.
I found capistrano plugin: https://github.com/platanus/capistrano-lets-encrypt

It using your project as dependency. When I execute this command:
cap staging lets_encrypt:register --trace

My deployment process failed. After some hacks, light_black is an extension to string method on Ruby. It is provided by colorizegem. I check at my Gemfile.lock,colorize` gem was listed. I don't know why it was not loaded...

I will create pull request to fix this problem. 😄

** Invoke staging (first_time)
** Execute staging
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke bundler:map_bins (first_time)
** Execute bundler:map_bins
** Invoke deploy:set_rails_env (first_time)
** Execute deploy:set_rails_env
** Invoke deploy:set_linked_dirs (first_time)
** Execute deploy:set_linked_dirs
** Invoke deploy:set_rails_env 
** Invoke rbenv:validate (first_time)
** Execute rbenv:validate
** Invoke rbenv:map_bins (first_time)
** Execute rbenv:map_bins
** Invoke lets_encrypt:register (first_time)
** Execute lets_encrypt:register
cap aborted!
NoMethodError: undefined method `light_black' for "2016-12-03 20:04:33 +0700":String
/Users/mantap123/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/letsencrypt-cli-0.4.1/lib/letsencrypt/cli/acme_wrapper.rb:17:in `block (2 levels) in log'
/Users/mantap123/.rbenv/versions/2.3.1/lib/ruby/2.3.0/logger.rb:546:in `format_message'
/Users/mantap123/.rbenv/versions/2.3.1/lib/ruby/2.3.0/logger.rb:434:in `add'
/Users/mantap123/.rbenv/versions/2.3.1/lib/ruby/2.3.0/logger.rb:489:in `info'
/Users/mantap123/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/letsencrypt-cli-0.4.1/lib/letsencrypt/cli/acme_wrapper.rb:20:in `log'
/Users/mantap123/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/letsencrypt-cli-0.4.1/lib/letsencrypt/cli/acme_wrapper.rb:168:in `find_or_create_pkey'
/Users/mantap123/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/letsencrypt-cli-0.4.1/lib/letsencrypt/cli/acme_wrapper.rb:160:in `account_key'
/Users/mantap123/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/letsencrypt-cli-0.4.1/lib/letsencrypt/cli/acme_wrapper.rb:24:in `client'
/Users/mantap123/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/capistrano-lets-encrypt-0.2.0/lib/capistrano/tasks/lets-encrypt.rake:174:in `client'
/Users/mantap123/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/capistrano-lets-encrypt-0.2.0/lib/capistrano/tasks/lets-encrypt.rake:17:in `block (2 levels) in <top (required)>'
mantap123 added a commit to mantap123/ruby-letsencrypt-cli that referenced this issue Dec 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant