Sha256: 5ccac386427f6c7a36c22cc1325d75af0d06ce513098215c13fe4b26219c0019

Contents?: true

Size: 989 Bytes

Versions: 11

Compression:

Stored size: 989 Bytes

Contents

module Calabash
  module Android
    # Runtime defaults for Android.
    module Defaults
      # Sets up the default device and the default application based on the
      # environment.
      #
      # @see Calabash::Android::Defaults#setup_default_application!
      # @see Calabash::Android::Defaults#setup_default_device!
      # @see Calabash::Environment
      def setup_defaults!
        setup_default_application!
        setup_default_device!
      end

      # Sets up the default application based on the environment.
      def setup_default_application!
        # Setup the default application
        Calabash.default_application = Application.default_from_environment
      end

      # Sets up the default device based on the environment.
      def setup_default_device!
        # Setup the default device
        identifier = Device.default_serial
        server = Server.default

        Calabash.default_device = Device.new(identifier, server)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
calabash-2.0.0.pre11 lib/calabash/android/defaults.rb
calabash-2.0.0.pre10 lib/calabash/android/defaults.rb
calabash-2.0.0.pre9 lib/calabash/android/defaults.rb
calabash-2.0.0.prelegacy4 lib/calabash/android/defaults.rb
calabash-2.0.0.prelegacy3 lib/calabash/android/defaults.rb
calabash-2.0.0.prelegacy2 lib/calabash/android/defaults.rb
calabash-2.0.0.prelegacy lib/calabash/android/defaults.rb
calabash-2.0.0.pre6 lib/calabash/android/defaults.rb
calabash-2.0.0.pre5 lib/calabash/android/defaults.rb
calabash-2.0.0.pre4 lib/calabash/android/defaults.rb
calabash-2.0.0.pre3 lib/calabash/android/defaults.rb