Class: Infrastructure

Inherits:
Object
  • Object
show all
Defined in:
lib/infrastructure/infrastructure.rb

Class Method Summary collapse

Class Method Details

.google_cloud_platform(project_name, app_name) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/infrastructure/infrastructure.rb', line 3

def self.google_cloud_platform(project_name, app_name)
    credentials = ENV['GOOGLE_CLOUD_KEYFILE']
    unless credentials
        puts 'Google Cloud credentials file not set. Run export GOOGLE_CLOUD_KEYFILE=<your_keyfile>.json'
        exit 1
    end
    GoogleCloudPlatform.new(project_name, app_name, credentials)
end