Class: Fastlane::FastlaneFolder
- Inherits:
-
Object
- Object
- Fastlane::FastlaneFolder
- Defined in:
- lib/fastlane/fastlane_folder.rb
Constant Summary collapse
- FOLDER_NAME =
'fastlane'
Class Method Summary collapse
Class Method Details
.create_folder! ⇒ Object
18 19 20 21 22 |
# File 'lib/fastlane/fastlane_folder.rb', line 18 def self.create_folder! path = "./#{FOLDER_NAME}" FileUtils.mkdir_p path Helper.log.info "Created new folder '#{path}'.".green end |
.path ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/fastlane/fastlane_folder.rb', line 5 def self.path return "./#{FOLDER_NAME}/" if File.directory?"./#{FOLDER_NAME}/" return "./.#{FOLDER_NAME}/" if File.directory?"./.#{FOLDER_NAME}/" # hidden folder return "./" if File.basename(Dir.getwd) == FOLDER_NAME and File.exists?"Fastfile" # inside the folder return "./" if File.basename(Dir.getwd) == FOLDER_NAME and File.exists?"Fastfile" # inside the folder and hidden return nil end |
.setup? ⇒ Boolean
13 14 15 16 |
# File 'lib/fastlane/fastlane_folder.rb', line 13 def self.setup? return false unless self.path return File.exists?self.path end |