Sha256: 4132dc719f4f477b9ba7e120ef5b464bf3d024ea017fc5566a9dbed5c6e46e47

Contents?: true

Size: 638 Bytes

Versions: 46

Compression:

Stored size: 638 Bytes

Contents

require "cf/cli/app/base"

module CF::App
  class Restart < Base
    desc "Stop and start an application"
    group :apps, :manage
    input :apps, :desc => "Applications to start", :argument => :splat,
          :singular => :app, :from_given => by_name(:app)
    input :debug_mode, :desc => "Debug mode to start in", :aliases => "-d"
    input :all, :desc => "Restart all applications", :default => false
    def restart
      invoke :stop, :all => input[:all], :apps => input[:apps]

      line unless quiet?

      invoke :start, :all => input[:all], :apps => input[:apps],
        :debug_mode => input[:debug_mode]
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
cf-3.0.1.rc1 lib/cf/cli/app/restart.rb
cf-3.0.0 lib/cf/cli/app/restart.rb
cf-3.0.0rc3 lib/cf/cli/app/restart.rb
cf-3.0.0rc2 lib/cf/cli/app/restart.rb
cf-3.0.0rc1 lib/cf/cli/app/restart.rb
cf-2.1.0 lib/cf/cli/app/restart.rb
cf-2.0.1 lib/cf/cli/app/restart.rb
cf-2.0.0 lib/cf/cli/app/restart.rb
cf-1.1.4 lib/cf/cli/app/restart.rb
cf-1.1.3.rc1 lib/cf/cli/app/restart.rb
cf-1.1.2 lib/cf/cli/app/restart.rb
cf-1.1.2.rc2 lib/cf/cli/app/restart.rb
cf-1.1.2.rc1 lib/cf/cli/app/restart.rb
cf-1.1.1 lib/cf/cli/app/restart.rb
cf-1.1.0 lib/cf/cli/app/restart.rb
cf-1.0.1.rc1 lib/cf/cli/app/restart.rb
cf-1.0.0 lib/cf/cli/app/restart.rb
cf-0.6.1.rc110 lib/cf/cli/app/restart.rb
cf-0.6.1.rc19 lib/cf/cli/app/restart.rb
cf-0.6.1.rc18 lib/cf/cli/app/restart.rb