Sha256: 96b0421fbf19d3b1f4055fbb14cf69e15c7473e2a4f55026af8eace9c36bda62

Contents?: true

Size: 662 Bytes

Versions: 8

Compression:

Stored size: 662 Bytes

Contents

require "calabash-android/version"

def calabash_setup
  @settings = {}

  puts "Please enter keystore information to use a custom keystore instead of the default"

  ask_for_setting(:keystore_location, "Please enter keystore location")
  ask_for_setting(:keystore_password, "Please enter the password for the keystore")
  ask_for_setting(:keystore_alias, "Please enter the alias")

  open('.calabash_settings', 'w') do |f|
    f.puts @settings.to_json
  end
  puts "Saved your settings to .calabash_settings. You can edit the settings manually or run this setup script again"
end

def ask_for_setting(key, msg)
  puts msg
  @settings[key] = STDIN.gets.chomp
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
calabash-android-0.5.5 bin/calabash-android-setup.rb
calabash-android-0.5.5.pre3 bin/calabash-android-setup.rb
calabash-android-0.5.5.pre2 bin/calabash-android-setup.rb
calabash-android-0.5.5.pre1 bin/calabash-android-setup.rb
calabash-android-0.5.4 bin/calabash-android-setup.rb
calabash-android-0.5.3 bin/calabash-android-setup.rb
calabash-android-0.5.2 bin/calabash-android-setup.rb
calabash-android-0.5.2.pre1 bin/calabash-android-setup.rb