Sha256: 340e568f1e73718aa04826ee99379d0312c916032dc349e950657233a6f3cc97
Contents?: true
Size: 878 Bytes
Versions: 1
Compression:
Stored size: 878 Bytes
Contents
require 'canals' require 'canals/version' require 'canals/tools/completion' module Canals module Cli module Helpers def tstop(name) Canals.stop(name) say "Tunnel #{name.inspect} stopped." end def tstart(name) pid = Canals.start(name) say "Created tunnel #{name.inspect} with pid #{pid}" pid end def trestart(name) tstop(name) tstart(name) end def startup_checks check_completion end def check_completion if Canals.config[:completion_version] if Canals.config[:completion_version] != Canals::VERSION Canals::Tools::Completion.update_completion say "bash completion script upgraded, use `source #{Canals::Tools::Completion.cmp_file}` to reload it", :red end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
canals-0.8.1 | lib/canals/cli/helpers.rb |