module Google::Cloud::Gemserver::Backend::GemstashServer

# GemstashServer

The class that runs gemstash specific commands and starts the gemstash server. Parts of gemstash are monkey-patched with lib/patched for compatibility with Google Cloud Platform services such as Cloud Storage and Cloud SQL.

Public Class Methods

env(config_path) click to toggle source

Fetches the gemstash environment given a configuration file.

@param [String] config_path The path to the configuration file.

@return [Gemstash::Env]

# File lib/google/cloud/gemserver/backend/gemstash_server.rb, line 52
def self.env config_path
  config = Gemstash::Configuration.new file: config_path
  Gemstash::Env.new config
end
start(args) click to toggle source

Runs a given command through the gemstash gem.

@param [String] args The argument passed to gemstash.

# File lib/google/cloud/gemserver/backend/gemstash_server.rb, line 42
def self.start args
  Gemstash::CLI.start args
end