Module: Kubes::Compiler::Shared::Helpers::ExtraHelper
- Included in:
- Kubes::Compiler::Shared::Helpers
- Defined in:
- lib/kubes/compiler/shared/helpers/extra_helper.rb
Instance Method Summary collapse
Instance Method Details
#extra ⇒ Object
7 8 9 10 |
# File 'lib/kubes/compiler/shared/helpers/extra_helper.rb', line 7 def extra extra = ENV['KUBES_EXTRA'] extra&.strip&.empty? ? nil : extra # if blank string then also return nil end |
#with_extra(value) ⇒ Object
3 4 5 |
# File 'lib/kubes/compiler/shared/helpers/extra_helper.rb', line 3 def with_extra(value) [value, extra].compact.join('-') end |