Sha256: 53035853376655a67bb3daf08f0716b45ee5ac637405def3024a950a1aa20a96
Contents?: true
Size: 957 Bytes
Versions: 22
Compression:
Stored size: 957 Bytes
Contents
# frozen_string_literal: true require "zlib" require "stringio" require_relative "../base" module Neetob class CLI module Heroku class AutoscalingConfig < Base attr_accessor :app def initialize(app) super() @app = app end def run addons_list_heroku_output = `heroku addons -a #{app}` judoscale_addon = addons_list_heroku_output.lines.select { |line| line.include?("judoscale") }.first judoscale_addon_enabled = judoscale_addon && judoscale_addon.include?("created") if judoscale_addon_enabled ui.success("Judoscale addon is enabled for #{app}.", print_to_audit_log: false) else ui.error("Judoscale addon is not enabled for #{app}.", print_to_audit_log: false) end if Thread.current[:audit_mode] { judoscale_addon_enabled: } end end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems