Class: Warp::Dir::Command::Remove
- Inherits:
-
Warp::Dir::Command
- Object
- Warp::Dir::Command
- Warp::Dir::Command::Remove
- Defined in:
- lib/warp/dir/command/remove.rb
Instance Attribute Summary
Attributes inherited from Warp::Dir::Command
#formatter, #point, #point_name, #point_path, #store
Instance Method Summary collapse
Methods inherited from Warp::Dir::Command
command_name, #config, help, inherited, #initialize, #inspect, installed_commands, #needs_point?, #on, #puts
Constructor Details
This class inherits a constructor from Warp::Dir::Command
Instance Method Details
#run(*args) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/warp/dir/command/remove.rb', line 8 def run(*args) point_name = self.point_name store.remove point_name: point_name on :success do "Warp point #{point_name.to_s.yellow} has been removed." end end |