class Deis::Commands::Disable
Public Instance Methods
run()
click to toggle source
# File lib/deis/commands/disable.rb, line 6 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