Sha256: 6197f1d9d04c0e6b43b2184b8de8612860233faee8c1e704bc243a0c4b3de9bb

Contents?: true

Size: 381 Bytes

Versions: 34

Compression:

Stored size: 381 Bytes

Contents

# encoding: UTF-8

module Vines
  module Command
    class Stop
      def run(opts)
        raise 'vines [--pid FILE] stop' unless opts[:args].size == 0
        daemon = Daemon.new(:pid => opts[:pid])
        if daemon.running?
          daemon.stop
          puts 'Vines has been shutdown'
        else
          puts 'Vines is not running'
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 4 rubygems

Version Path
diaspora-vines-0.2.0.develop.4 lib/vines/command/stop.rb
diaspora-vines-0.2.0.develop.3 lib/vines/command/stop.rb
diaspora-vines-0.2.0.develop.2 lib/vines/command/stop.rb
diaspora-vines-0.2.0.develop.1 lib/vines/command/stop.rb
diaspora-vines-0.1.28 lib/vines/command/stop.rb
lygneo-vines-0.1.5 lib/vines/command/stop.rb
lygneo-vines-0.1.1 lib/vines/command/stop.rb
diaspora-vines-0.1.27 lib/vines/command/stop.rb
diaspora-vines-0.1.26 lib/vines/command/stop.rb
diaspora-vines-0.1.25 lib/vines/command/stop.rb
diaspora-vines-0.1.24 lib/vines/command/stop.rb
vines-0.4.10 lib/vines/command/stop.rb
diaspora-vines-0.1.22 lib/vines/command/stop.rb
diaspora-vines-0.1.21 lib/vines/command/stop.rb
diaspora-vines-0.1.2 lib/vines/command/stop.rb
vines-0.4.9 lib/vines/command/stop.rb
vines-0.4.8 lib/vines/command/stop.rb
vines-0.4.7 lib/vines/command/stop.rb
vines-0.4.6 lib/vines/command/stop.rb
vinesmod-0.4.5.2 lib/vines/command/stop.rb