Module: Google::Cloud::Gemserver::Backend::GemstashServer
- Defined in:
- lib/google/cloud/gemserver/backend/gemstash_server.rb
Overview
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.
Class Method Summary collapse
-
.env(config_path) ⇒ Gemstash::Env
Fetches the gemstash environment given a configuration file.
-
.start(args) ⇒ Object
Runs a given command through the gemstash gem.
Class Method Details
.env(config_path) ⇒ Gemstash::Env
Fetches the gemstash environment given a configuration file.
52 53 54 55 |
# 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) ⇒ Object
Runs a given command through the gemstash gem.
42 43 44 |
# File 'lib/google/cloud/gemserver/backend/gemstash_server.rb', line 42 def self.start args Gemstash::CLI.start args end |