Sha256: 4f8efdaf8ce29530963ac1da8ab4b27bb615f93f650e55dfe99c309d52698a0e

Contents?: true

Size: 347 Bytes

Versions: 111

Compression:

Stored size: 347 Bytes

Contents

module Jets::CommonMethods
  extend Memoist
  # Add API Gateway Stage Name
  def add_stage_name(url)
    Jets::Controller::Stage.add(request.host, url)
  end

  def on_aws?
    on_cloud9 = Jets::Controller::Stage.on_cloud9?(request.headers['HTTP_HOST'])
    !request.headers['HTTP_X_AMZN_TRACE_ID'].nil? && !on_cloud9
  end
  memoize :on_aws?
end

Version data entries

111 entries across 111 versions & 3 rubygems

Version Path
jets-4.0.4 lib/jets/overrides/rails/common_methods.rb
jets-4.0.3 lib/jets/overrides/rails/common_methods.rb
jets-4.0.2 lib/jets/overrides/rails/common_methods.rb
jets-4.0.1 lib/jets/overrides/rails/common_methods.rb
jets-4.0.0 lib/jets/overrides/rails/common_methods.rb
jets-3.2.2 lib/jets/overrides/rails/common_methods.rb
jets-3.2.1 lib/jets/overrides/rails/common_methods.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/overrides/rails/common_methods.rb
jets-3.2.0 lib/jets/overrides/rails/common_methods.rb
jets-3.1.5 lib/jets/overrides/rails/common_methods.rb
jets-3.1.4 lib/jets/overrides/rails/common_methods.rb
jets-3.1.3 lib/jets/overrides/rails/common_methods.rb
jets-3.1.2 lib/jets/overrides/rails/common_methods.rb
jets-3.1.1 lib/jets/overrides/rails/common_methods.rb
jets-3.1.0 lib/jets/overrides/rails/common_methods.rb
jets-3.0.23 lib/jets/overrides/rails/common_methods.rb
jets-3.0.22 lib/jets/overrides/rails/common_methods.rb
jets-3.0.21 lib/jets/overrides/rails/common_methods.rb
jets-3.0.20 lib/jets/overrides/rails/common_methods.rb
jets-3.0.19 lib/jets/overrides/rails/common_methods.rb