Class: Geb::CLI::Commands::Remote
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Geb::CLI::Commands::Remote
- Defined in:
- lib/geb/commands/remote.rb
Overview
Define remote command
Instance Method Summary collapse
-
#call ⇒ Object
Call method for the remote command.
Instance Method Details
#call ⇒ Object
Call method for the remote command
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/geb/commands/remote.rb', line 27 def call(*) # initialise a new site and load the site from the current directory site = Geb::Site.new site.load(Dir.pwd) # launch the remote session site.launch_remote() rescue Geb::Error => e # print error message puts warn e. end |