Class: Superbot::CLI::NewCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Superbot::CLI::NewCommand
- Defined in:
- lib/superbot/cli/new_command.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/superbot/cli/new_command.rb', line 25 def execute FileUtils.mkdir path File.write File.join(path, "main.rb"), "visit \"http://example.com\"\n" puts """🤖 created directory #{path} with main.rb Start testing with: superbot run #{path} """ end |