Sha256: 6738a8af995b44b5cec05f443905caacc87979cc4785bde24982890f51fda96c
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
require 'warp/dir/command' require 'colored' module Warp module Dir class Command class Warp < Warp::Dir::Command description %q(Jumps to the pre-defined warp point (command optional)) needs_a_point? true def run(*args) if point.nil? && point_name self.point = store[point_name] end raise ::Warp::Dir::Errors::PointNotFound.new(point) unless point p = point on :shell do message "cd #{p.absolute_path}" end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
warp-dir-1.1.1 | lib/warp/dir/command/warp.rb |
warp-dir-1.1.0 | lib/warp/dir/command/warp.rb |