Class: SeleniumShots::Command::Help

Inherits:
Base
  • Object
show all
Defined in:
lib/selenium_shots/cli/commands/help.rb

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

#ask, #ask_for_config_file, #config_file, #display, #home_directory, #initialize, #make_config_file, #running_on_windows?, #selenium_shots, #selenium_shots_api_key, #shell

Constructor Details

This class inherits a constructor from SeleniumShots::Command::Base

Instance Method Details

#indexObject



3
4
5
# File 'lib/selenium_shots/cli/commands/help.rb', line 3

def index
  display usage
end

#usageObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/selenium_shots/cli/commands/help.rb', line 7

def usage
  usage = "=== General Commands\n\n help                     # show this usage\n create [name]            # create file config for your app\n\n=== Example story:\n\n rails myapp\n cd myapp\n (...make edits...)\n selenium_shots create example_one\n"
end