Sha256: 9b299e3c72a8a68c6cf3c1a68cd83937a35e9f4106854796dbdc56c069d438ae

Contents?: true

Size: 724 Bytes

Versions: 3

Compression:

Stored size: 724 Bytes

Contents

module Freyr
  class CLI < Thor
    
    # desc 'update_pid [SERVICE=dirname]', 'Update pid from proc_match (good to use if service already launched)'
    # def update_pid(name=nil)
    #   services = get_from_name(name)
    #   if s = services.first
    #     if pid = s.command.update_pid
    #       say "Updated pid for "<< set_color(s.name,:blue) << ' to ' << set_color(pid,:red)
    #     elsif s.proc_match
    #       say "Couldn't find pid for process matcher #{s.proc_match.inspect}", :red
    #     else
    #       say "Service #{s.name} doesn't have a value for proc_match set.", :red
    #     end
    #   else
    #     say "Couldn't find service with name #{name}.", :red
    #   end
    # end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
freyr-0.5.2 lib/freyr/cli/management.rb
freyr-0.5.1 lib/freyr/cli/management.rb
freyr-0.5.0 lib/freyr/cli/management.rb