Sha256: 87c1817cf3ae987f940ba2d580afb0c7f6397111c9e33145b915bb5963d60f12

Contents?: true

Size: 674 Bytes

Versions: 11

Compression:

Stored size: 674 Bytes

Contents

require "vmc/cli/app/base"

module VMC::App
  class Restart < Base
    desc "Stop and start an application"
    group :apps, :manage
    input :apps, :argument => :splat, :singular => :app,
      :desc => "Applications to start",
      :from_given => by_name("app")
    input :debug_mode, :aliases => "-d",
      :desc => "Debug mode to start in"
    input :all, :type => :boolean, :default => false,
      :desc => "Restart all applications"
    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

11 entries across 11 versions & 1 rubygems

Version Path
vmc-0.4.7 lib/vmc/cli/app/restart.rb
vmc-0.4.6 lib/vmc/cli/app/restart.rb
vmc-0.4.5 lib/vmc/cli/app/restart.rb
vmc-0.4.4 lib/vmc/cli/app/restart.rb
vmc-0.4.3 lib/vmc/cli/app/restart.rb
vmc-0.4.2 lib/vmc/cli/app/restart.rb
vmc-0.4.1 lib/vmc/cli/app/restart.rb
vmc-0.4.0 lib/vmc/cli/app/restart.rb
vmc-0.4.0.beta.97 vmc-ng/lib/vmc/cli/app/restart.rb
vmc-0.4.0.beta.96 vmc-ng/lib/vmc/cli/app/restart.rb
vmc-0.4.0.beta.94 vmc-ng/lib/vmc/cli/app/restart.rb