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

Version Path
deis-rails-1.0.10 lib/deis/commands/disable.rb
deis-rails-1.0.9 lib/deis/commands/disable.rb
deis-rails-1.0.8 lib/deis/commands/disable.rb
deis-rails-1.0.7 lib/deis/commands/disable.rb
deis-rails-1.0.6 lib/deis/commands/disable.rb
deis-rails-1.0.5 lib/deis/commands/disable.rb
deis-rails-1.0.4 lib/deis/commands/disable.rb
deis-rails-1.0.3 lib/deis/commands/disable.rb