Module: Appium::CLI::Config

Defined in:
lib/cli.rb

Class Method Summary collapse

Class Method Details

.default_appium_txt_pathObject


11
12
13
# File 'lib/cli.rb', line 11

def default_appium_txt_path
  'appium.txt'
end

.template(caps) ⇒ Object


15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/cli.rb', line 15

def template(caps)
  "[caps]\nplatformName = \"\#{caps[:platform_name]}\"\n\#{caps[:platform_version] ? \"platformVersion = \\\"\#{caps[:platform_version]}\\\"\" : 'skip'}\n\#{caps[:device_name] ? \"deviceName = \\\"\#{caps[:device_name]}\\\"\" : 'skip'}\napp = \"\#{caps[:path_to_app]}\"\n\#{caps[:app_package] ? \"appPackage = \\\"\#{caps[:app_package]}\\\"\" : 'skip'}\n\#{caps[:app_activity] ? \"appActivity = \\\"\#{caps[:app_activity]}\\\"\" : 'skip'}\n\n[appium_lib]\nserver_url = \"http://127.0.0.1:4723/wd/hub\"\nsauce_username = \"\"\nsauce_access_key = \"\"\n".gsub(/skip\s/, '')
end