Class: Playwright::CLI::Commands::Destroy::Command
- Inherits:
-
Object
- Object
- Playwright::CLI::Commands::Destroy::Command
- Includes:
- Utils::Display, Utils::FileManager
- Defined in:
- lib/playwright/cli/commands/destroy/command.rb
Constant Summary collapse
- TEMPLATE_FILE =
'new_script.erb'.freeze
- PATH_BIN_DIR =
Pathname.new(File.join('/', 'usr', 'local', 'bin'))
- DEFAULT_COLOR =
:green
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name) ⇒ Command
constructor
A new instance of Command.
- #run ⇒ Object
Methods included from Utils::FileManager
Methods included from Utils::Display
Constructor Details
#initialize(name) ⇒ Command
Returns a new instance of Command.
19 20 21 |
# File 'lib/playwright/cli/commands/destroy/command.rb', line 19 def initialize(name) @name = name end |
Class Method Details
.run(name) ⇒ Object
15 16 17 |
# File 'lib/playwright/cli/commands/destroy/command.rb', line 15 def self.run(name) new(name).run end |
Instance Method Details
#run ⇒ Object
23 24 25 |
# File 'lib/playwright/cli/commands/destroy/command.rb', line 23 def run file_manager.uninstall_script @name end |