Sha256: 6e234709d49998f5464199d012110d9f4399ec8cdb6ba9306b1b48eebe83314d

Contents?: true

Size: 953 Bytes

Versions: 3

Compression:

Stored size: 953 Bytes

Contents

module Calabash
  module 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

3 entries across 3 versions & 1 rubygems

Version Path
calabash-2.0.0.pre2 lib/calabash/android/defaults.rb
calabash-2.0.0.pre1 lib/calabash/android/defaults.rb
calabash-1.9.9.pre3 lib/calabash/android/defaults.rb