diff options
Diffstat (limited to 'db/fixtures/development/12_snippets.rb')
-rw-r--r-- | db/fixtures/development/12_snippets.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/fixtures/development/12_snippets.rb b/db/fixtures/development/12_snippets.rb index 24500aa3e7d..4f885f99846 100644 --- a/db/fixtures/development/12_snippets.rb +++ b/db/fixtures/development/12_snippets.rb @@ -9,7 +9,7 @@ class Gitlab::Seeder::SnippetRepository end def import - if File.exists?(BUNDLE_PATH) + if File.exist?(BUNDLE_PATH) @snippet.repository.create_from_bundle(BUNDLE_PATH) else @snippet.repository.import_repository(SNIPPET_REPO_URL) @@ -18,7 +18,7 @@ class Gitlab::Seeder::SnippetRepository end def self.cleanup - File.delete(BUNDLE_PATH) if File.exists?(BUNDLE_PATH) + File.delete(BUNDLE_PATH) if File.exist?(BUNDLE_PATH) rescue => e warn "\nError cleaning up snippet bundle: #{e}" end |