class EySecrets::Repository
Public Instance Methods
assert_ready_for_update()
click to toggle source
# File lib/ey_secrets/models/repository.rb, line 14 def assert_ready_for_update unless ready_for_update? raise(NotReadyForUpdate, 'Commit on master and push your changes before updating config.' \ "\n\n" \ 'Config can only be updated from the master branch. ' \ 'This helps ensure that the credentials found on a production ' \ 'system always reflect the current state of the master branch.') end end
glob(pattern)
click to toggle source
# File lib/ey_secrets/models/repository.rb, line 10 def glob(pattern) files.select { |file| File.fnmatch(pattern, file) } end
ready_for_update?()
click to toggle source
# File lib/ey_secrets/models/repository.rb, line 6 def ready_for_update? ready_for_update end