Sha256: 6a9e6464251592f767b86594dea10dd381f35c8084670569b6951070c91bb381

Contents?: true

Size: 280 Bytes

Versions: 12

Compression:

Stored size: 280 Bytes

Contents

module Kubes::Compiler::Shared::Helpers
  module ExtraHelper
    def with_extra(value)
      [value, extra].compact.join('-')
    end

    def extra
      extra = ENV['KUBES_EXTRA']
      extra&.strip&.empty? ? nil : extra # if blank string then also return nil
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kubes-0.9.3 lib/kubes/compiler/shared/helpers/extra_helper.rb
kubes-0.9.2 lib/kubes/compiler/shared/helpers/extra_helper.rb
kubes-0.9.1 lib/kubes/compiler/shared/helpers/extra_helper.rb
kubes-0.9.0 lib/kubes/compiler/shared/helpers/extra_helper.rb
kubes-0.8.10 lib/kubes/compiler/shared/helpers/extra_helper.rb
kubes-0.8.9 lib/kubes/compiler/shared/helpers/extra_helper.rb
kubes-0.8.8 lib/kubes/compiler/shared/helpers/extra_helper.rb
kubes-0.8.7 lib/kubes/compiler/shared/helpers/extra_helper.rb
kubes-0.8.6 lib/kubes/compiler/shared/helpers/extra_helper.rb
kubes-0.8.5 lib/kubes/compiler/shared/helpers/extra_helper.rb
kubes-0.8.4 lib/kubes/compiler/shared/helpers/extra_helper.rb
kubes-0.8.3 lib/kubes/compiler/shared/helpers/extra_helper.rb