class TYUtil::Dir

Public Class Methods

dir_ensure(path) click to toggle source
# File lib/tuya/ci/core/util/dir.rb, line 3
def self.dir_ensure(path)
        dir = FileUtils.pwd

        puts "Original dir is #{FileUtils.pwd}".green

        dir.gsub!(/\/#{path}/, '')

        FileUtils.cd dir

        puts "Current dir is #{FileUtils.pwd}".green

end
dir_ensure_fastlane() click to toggle source
# File lib/tuya/ci/core/util/dir.rb, line 16
def self.dir_ensure_fastlane
        dir_ensure 'fastlane'
end