bin/srd in sifttter-redux-0.2.0 vs bin/srd in sifttter-redux-0.2.1

- old
+ new

@@ -33,44 +33,36 @@ #------------------------------------------------------------------------------------------------------------- require 'colored' require 'fileutils' require 'gli' +require 'sifttter-redux' require 'time' require 'yaml' -require 'Sifttter-Redux' - include GLI::App -$config = ConfigManager.instance -$date_range_maker = DateRangeMaker.new -$db_uploader = File.join($config.db_uploader["local_filepath"], "dropbox_uploader.sh") - program_desc "Sifttter Redux A modification of Craig Eley's Sifttter that allows for smart installation on a standalone *NIX device (such as a Raspberry Pi)." version SifttterRedux::VERSION -# desc 'Describe some switch here' -# switch [:s,:switch] -# -# desc 'Describe some flag here' -# default_value 'the default' -# arg_name 'The name of the argument' -# flag [:f,:flagname] - #| ====================================================== #| Pre, Post, and Error #| ====================================================== pre do |global,command,options,args| + $config = ConfigManager.instance + $date_range_maker = DateRangeMaker.new + if !File.exists?(SifttterRedux::SRD_CONFIG_FILEPATH) CliMessage.info("It doesn't look like you've initlized Sifttter Redux yet. Doing that now...") initialize_procedures end + + $db_uploader = File.join($config.db_uploader["local_filepath"], "dropbox_uploader.sh") true end post do |global,command,options,args| # Post logic here