Sha256: 783a68ae6466355b70994b8c460955d7fe7734c6e25ccb6f75e1501b55e39787
Contents?: true
Size: 319 Bytes
Versions: 8
Compression:
Stored size: 319 Bytes
Contents
module Deis module Commands class Disable < Struct.new :app include Helpers def run status "Disabling App: #{app}" units = shell('foreman check').strip.sub(/.*\((.*)\)/, "\\1").split(', ') scale app, units.each_with_object({}) { |k, h| h[k] = 0 } end end end end
Version data entries
8 entries across 8 versions & 1 rubygems