Class: SeleniumShots::Command::App
- Defined in:
- lib/selenium_shots/cli/commands/app.rb
Instance Attribute Summary
Attributes inherited from Base
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
#create ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/selenium_shots/cli/commands/app.rb', line 3 def create name = args.shift.downcase.strip rescue nil if name selenium_shots_api_key if make_config_file(name, @api_key) == "y" display "Created #{name}\nYou can configurate selenium shots on config/selenium_shots.yml" end else display "You need specify a name for your app. Run 'selenium_shots help' for usage information" end end |