Module: Superbot

Defined in:
lib/superbot.rb,
lib/superbot/cli.rb,
lib/superbot/web.rb,
lib/superbot/project.rb,
lib/superbot/version.rb,
lib/superbot/cli/new_command.rb,
lib/superbot/cli/validations.rb,
lib/superbot/cli/root_command.rb,
lib/superbot/cli/version_command.rb

Defined Under Namespace

Modules: CLI, Validations Classes: Project, Web

Constant Summary collapse

DOMAIN =
ENV.fetch('SUPERBOT_DOMAIN', 'superbot.cloud')
URI_SCHEME =
ENV.fetch('SUPERBOT_URI_SCHEME', 'https')
VERSION =
"0.4.8"

Class Method Summary collapse

Class Method Details

.cloud_timeoutObject



33
34
35
# File 'lib/superbot.rb', line 33

def self.cloud_timeout
  CLOUD_TIMEOUT
end

.screenshots_url(type, session_id) ⇒ Object



37
38
39
# File 'lib/superbot.rb', line 37

def self.screenshots_url(type, session_id)
  "#{SCREENSHOTS_ENDPOINT[type.to_sym]}/#{session_id}"
end

.test_run?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/superbot.rb', line 25

def self.test_run?
  ENV["SUPERBOT_TEST_RUN"] == "true"
end

.webdriver_endpoint(type) ⇒ Object



29
30
31
# File 'lib/superbot.rb', line 29

def self.webdriver_endpoint(type)
  WEBDRIVER_ENDPOINT[type.to_sym]
end