Sha256: 643a178a22f699f2c35a6007ebb13132d16d54e8909917fcd353a2751d28903c

Contents?: true

Size: 657 Bytes

Versions: 1

Compression:

Stored size: 657 Bytes

Contents

module Souls
  class Functions < Thor
    desc "deploy", "Deploy Cloud Functions"
    def deploy
      project_id = Souls.configuration.project_id
      Souls::Gcloud.new.config_set
      Dir.chdir(Souls.get_functions_path.to_s) do
        system(
          "
          gcloud functions deploy souls_functions --project=#{project_id} \
          --runtime ruby27 --trigger-http --allow-unauthenticated
          "
        )
      end
    end

    desc "dev", "Check SOULs Functions dev"
    def dev
      Dir.chdir(Souls.get_functions_path.to_s) do
        system("bundle exec functions-framework-ruby --target souls_functions")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
souls-1.13.8 lib/souls/cli/gcloud/functions/index.rb