class SimpleBackup::Source::DirStrategy::Capistrano
Public Instance Methods
get_entries(path)
click to toggle source
# File lib/simple_backup/source/dir_strategy/capistrano.rb, line 7 def get_entries(path) shared = shared_path(path) current = current_path(path) paths = [current, shared].compact if paths.empty? @@logger.warning "No capistrano paths for application" return nil end paths end
Private Instance Methods
current_path(path)
click to toggle source
# File lib/simple_backup/source/dir_strategy/capistrano.rb, line 21 def current_path(path) current = ::Dir.new(::File.join(path, 'current') + '/') @@logger.debug "Capistrano current path: #{current.path}" current.path rescue Errno::ENOENT @@logger.warning "No capistrano current path for application" nil end