capistrano / rails

Official Ruby on Rails specific tasks for Capistrano
http://www.capistranorb.com/
MIT License
867 stars 270 forks source link

Default :keep_assets to nil to eliminate cap-doctor warning. #263

Closed JasonPoll closed 1 year ago

JasonPoll commented 1 year ago

Summary

First mentioned in #251, then once again in #262, when setting a value for :keep_assets, cap doctor will emit a warning:

# deploy.rb
set :keep_assets, -> { fetch(:keep_releases, 5) }
cap staging doctor 
# ...
# ....snipped for brevity
    :keep_assets is not a recognized Capistrano setting (/Users/jason.poll/.rbenv/versions/3.1.2/lib/ruby/3.1.0/delegate.rb:87)

Using:

mattbrictson commented 1 year ago

Looks great! Thanks for the contribution!