sifttter-redux 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +5 -0
- data/bin/srd +9 -3
- data/lib/sifttter_redux/dbu.rb +3 -4
- data/lib/sifttter_redux/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: c4afa531ec678cbfa866347937a5156be38299ab
|
4
|
+
data.tar.gz: 430b9de23891466f94881203026c092ed5d6127d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaebe980531b1b1a6080d69e012978d410dbe4f65b430d722f61acce66bcb3876aaf595ae2c87af1b1f9795e05eda90158a8d042975b7d53840a722b323598b9
|
7
|
+
data.tar.gz: 9ca6c03f12e26ed70ebdb177454d3cad91501a3cc06a9b3f49ff63a00712559464d07bec3673d6a227b804e708dcf42f25bb8682db86953a058518ac710bf0d7
|
data/HISTORY.md
CHANGED
data/bin/srd
CHANGED
@@ -67,11 +67,17 @@ pre do |global, command, options, args|
|
|
67
67
|
# Load SifttterRedux configuration module.
|
68
68
|
Configuration.load(SRD_CONFIG_FILEPATH)
|
69
69
|
|
70
|
-
# Load Dropbox Uploader module.
|
71
|
-
DBU.load(File.join(Configuration['db_uploader']['local_filepath'], 'dropbox_uploader.sh')) if File.exists?(SRD_CONFIG_FILEPATH)
|
72
|
-
|
73
70
|
# Load Methadone CLILogging module.
|
74
71
|
Methadone::CLILogging.change_logger(Methadone::CLILogger.new(SRD_LOG_FILEPATH, SRD_LOG_FILEPATH))
|
72
|
+
|
73
|
+
# Force the user to initialize if they try to execute first.
|
74
|
+
if command.name_for_help[0] == 'exec' && !File.exists?(SRD_CONFIG_FILEPATH)
|
75
|
+
CLIMessage.info('You need to initialize Sifttter Redux first...')
|
76
|
+
SifttterRedux.init
|
77
|
+
end
|
78
|
+
|
79
|
+
# Load Dropbox Uploader module.
|
80
|
+
DBU.load(File.join(Configuration['db_uploader']['local_filepath'], 'dropbox_uploader.sh')) if File.exists?(SRD_CONFIG_FILEPATH)
|
75
81
|
|
76
82
|
true
|
77
83
|
end
|
data/lib/sifttter_redux/dbu.rb
CHANGED
@@ -61,12 +61,11 @@ module SifttterRedux
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
# If the user has never configured Dropbox Uploader, have them do it here.
|
65
|
+
CLIMessage.info_block('Initializing Dropbox Uploader...') { system "#{ File.join(path, 'dropbox_uploader.sh') }" } unless File.exists?(CONFIG_FILEPATH)
|
66
|
+
|
64
67
|
Configuration.add_section('db_uploader')
|
65
68
|
Configuration['db_uploader'].merge!('local_filepath' => path)
|
66
|
-
load(File.join(path, 'dropbox_uploader.sh'))
|
67
|
-
|
68
|
-
# If the user has never configured Dropbox Uploader, have them do it here.
|
69
|
-
CLIMessage.info_block('Initializing Dropbox Uploader...') { system "#{ @dbu }" } unless File.exists?(CONFIG_FILEPATH)
|
70
69
|
else
|
71
70
|
puts "Sorry, but #{ path } isn't a valid directory."
|
72
71
|
end
|