figaro-backup 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/figaro/backup/rails/engine.rb +4 -3
- data/lib/figaro/backup/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c31a3bcd1ec11917d8018d0170a4b33bcf952db8
|
4
|
+
data.tar.gz: 664774d50ede397d8aedd44d71b7b5acc46d2c34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92989f4ef7059817fa5e3fefe13c79123a5d6d8eaddbe5b20431fe1ca494b4f4be52844c0ed8115e5356748910445eccdacf40980bf2177c30b1ef68bc1deb03
|
7
|
+
data.tar.gz: 610e3b73cca07eb848b120378ca1f7390026a4e32e82baf3c6c97d2a2594bc9fa58c258703b0a37992d22a816a837869fe441b2c76b7a7eceecb5ecc64f53c47
|
data/Gemfile
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
module Figaro
|
2
|
-
module
|
2
|
+
module Backup
|
3
3
|
module Rails
|
4
4
|
class Engine < ::Rails::Engine
|
5
5
|
|
6
6
|
config.before_configuration do
|
7
|
-
check_things_out!
|
7
|
+
check_things_out! if ::Rails.env.development?
|
8
8
|
end
|
9
9
|
|
10
10
|
def check_things_out!
|
11
|
+
raise build_message "Oops... #{Figaro.application.path.inspect} is missing." unless File.exists?(Figaro.application.path)
|
11
12
|
raise build_message "You should really use git!" unless git_installed?
|
12
13
|
raise build_message "Make sure to add #{Figaro.application.path.inspect} to .gitignore!" unless git_ignored?
|
13
14
|
return puts(build_message "YAY! Your project lives in Dropbox!") if in_dropbox?(Figaro.application.path)
|
@@ -53,7 +54,7 @@ module Figaro
|
|
53
54
|
end
|
54
55
|
|
55
56
|
def build_message(message)
|
56
|
-
"[Figaro
|
57
|
+
"[Figaro Backup] #{message}"
|
57
58
|
end
|
58
59
|
end
|
59
60
|
end
|