Sha256: 0f1de71e162eb3a8c29c92aa3d7d72575a7e802fd573fa5ec5864db9630bed7e

Contents?: true

Size: 728 Bytes

Versions: 7

Compression:

Stored size: 728 Bytes

Contents

module Jets::Api
  class Base
    include Jets::Api
    delegate :global_params, to: :class
    class << self
      include Jets::Api

      def global_params
        Jets.boot
        params = {}
        params[:jets_env] = Jets.env.to_s
        params[:jets_extra] = Jets.extra.to_s if Jets.extra
        params[:name] = Jets.project_namespace
        params[:region] = Jets.aws.region
        params[:account] = Jets.aws.account
        params[:project_id] = Jets.project_name
        params[:jets_api_version] = Jets::Api::VERSION
        params[:jets_version] = Jets::VERSION
        params[:ruby_version] = RUBY_VERSION
        params[:ruby_folder] = Jets::Api::Gems.ruby_folder
        params
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jets-api-0.2.0 lib/jets/api/base.rb
jets-api-0.1.5 lib/jets/api/base.rb
jets-api-0.1.4 lib/jets/api/base.rb
jets-api-0.1.3 lib/jets/api/base.rb
jets-api-0.1.2 lib/jets/api/base.rb
jets-api-0.1.1 lib/jets/api/base.rb
jets-api-0.1.0 lib/jets/api/base.rb