lib/sct/sct_folder.rb in sct-0.1.1 vs lib/sct/sct_folder.rb in sct-0.1.2
- old
+ new
@@ -8,27 +8,27 @@
value ||= "./" if File.basename(Dir.getwd) == FOLDER_NAME && File.exist?('Sctfile') # inside the folder
value ||= "./" if File.basename(Dir.getwd) == ".#{FOLDER_NAME}" && File.exist?('Sctfile') # inside the folder and hidden
return value
end
- def self.Sctfile_path
+ def self.sctfile_path
return nil if self.path.nil?
path = File.join(self.path, 'Sctfile')
return path if File.exist?(path)
return nil
end
- # Does a Sct configuration already exist?
+ # Does a sct configuration already exist?
def self.setup?
- return false unless self.Sctfile_path
- File.exist?(self.Sctfile_path)
+ return false unless self.sctfile_path
+ File.exist?(self.sctfile_path)
end
def self.create_folder!(path = nil)
path = File.join(path || '.', FOLDER_NAME)
return if File.directory?(path) # directory is already there
- puts "Found a folder called 'Sct' at path '#{path}', please delete it" if File.exist?(path)
+ puts "Found a folder called 'sct' at path '#{path}', please delete it" if File.exist?(path)
FileUtils.mkdir_p(path)
puts "Created new folder '#{path}'."
end
end
end
\ No newline at end of file