Sha256: e2ed089d5731b21ff8171add3fa03cf29fc2b4df1ed5d7f21300428207a97e74
Contents?: true
Size: 1.01 KB
Versions: 9
Compression:
Stored size: 1.01 KB
Contents
require 'time' module Wicoris module Postman class CLI include Mixlib::CLI option :jobdir, :long => '--jobdir DIRECTORY', :short => '-j', :description => 'Directory with all JSON files a.k.a. jobs' option :noop, :long => '--noop', :short => '-n', :description => "Don't do anything, just pretend to", :boolean => true, :default => false option :outdir, :long => '--outdir DIRECTORY', :short => '-o', :description => 'Output directory for copying letters' option :config, :long => '--config CONFIG_FILE', :short => '-c', :description => 'Configuration file for Postman' # Run a postman that clears the mailbox. def run Postman.new(opts).run end private # @returns [Hash] App config def opts parse_options Config.from_file(config[:config]) if config[:config] Config.merge!(config) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems