class Playwright::CLI::Commands::Generate::Command
Constants
- PATH_BIN_DIR
- TEMPLATE_FILE
Public Class Methods
new(name, type)
click to toggle source
# File lib/playwright/cli/commands/generate/command.rb, line 21 def initialize(name, type) @name = name @type = type end
run(name, type)
click to toggle source
# File lib/playwright/cli/commands/generate/command.rb, line 17 def self.run(name, type) new(name, type).run end
Public Instance Methods
run()
click to toggle source
# File lib/playwright/cli/commands/generate/command.rb, line 26 def run file_manager.install_script script_name: @name, type: @type end