bin/shaft in shaft-0.5.0 vs bin/shaft in shaft-0.5.1

- old
+ new

@@ -82,9 +82,15 @@ else error "Tunnel '#{name}' does not seem to be active!" end end + desc "restart [NAME]", "Restarts a tunnel" + method_options :name => :string + def restart(name) + stop(name) && start(name) + end + private def read_yaml(filename) path = File.join(SHAFT_DIR, filename) YAML::load(File.open(path)) if File.exist?(path) end