Class: Dev::Template::Eol
- Inherits:
-
BaseInterface
- Object
- BaseInterface
- Dev::Template::Eol
- Defined in:
- lib/firespring_dev_commands/templates/eol.rb
Overview
Class contains rake templates for managing upcoming eol dates for configured projects
Instance Attribute Summary
Attributes inherited from BaseInterface
Instance Method Summary collapse
-
#create_eol_task! ⇒ Object
Create the rake task for the eol method.
Methods inherited from BaseInterface
Constructor Details
This class inherits a constructor from Dev::Template::BaseInterface
Instance Method Details
#create_eol_task! ⇒ Object
Create the rake task for the eol method
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/firespring_dev_commands/templates/eol.rb', line 8 def create_eol_task! # Have to set a local variable to be accessible inside of the instance_eval block exclude = @exclude DEV_COMMANDS_TOP_LEVEL.instance_eval do return if exclude.include?(:eol) desc 'Compares the current date to the EOL date for all configured projects' \ "\n\toptionally specify CHECK_AWS=<true/false> to toggle whether AWS resources are checked for EOL (defaults to true)" task eol: %w(init) do manual_products = Dev::EndOfLife.new.product_versions next if manual_products.empty? puts puts 'Manual product versions' Dev::EndOfLife.new(product_versions: manual_products).status puts end end end |