Sha256: 25a1c2f0113d06984f7921e72bf225139c1cec7e4205d610ec75b631f7a1f40b
Contents?: true
Size: 665 Bytes
Versions: 5
Compression:
Stored size: 665 Bytes
Contents
# frozen_string_literal: true require_relative "base" module Neetob class CLI module Cloudflare class EnsureCloudflareCdn < Base attr_accessor :app def initialize(app) super() @app = app end def run command = <<-CMD neetob neetodeploy config_vars list --apps #{app} | grep 'ASSET_HOST' | awk -F '|' '{print $3}' | xargs CMD asset_host = `#{command}` raise(StandardError, "ASSET_HOST env is not set for #{app}") if asset_host.empty? ui.success("ASSET_HOST for #{app} is #{asset_host}") end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems