Module: Calabash::Android::DotDir

Defined in:
lib/calabash-android/dot_dir.rb

Overview

A module for managing the ~/.calabash directory.

Class Method Summary collapse

Class Method Details

.directoryObject



5
6
7
8
9
10
11
12
# File 'lib/calabash-android/dot_dir.rb', line 5

def self.directory
  home = Calabash::Android::Environment.user_home_directory
  dir = File.join(home, ".calabash")
  if !File.exist?(dir)
    FileUtils.mkdir_p(dir)
  end
  dir
end