Sha256: 0bd914b8f01a0e2ee1b5e4196eddf29611fcbd2eb5950be9efe042fa4cbfb417

Contents?: true

Size: 1010 Bytes

Versions: 17

Compression:

Stored size: 1010 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_base0/core_ext'
require 'json'
require 'yaml'

module Ehbrs
  module Tools
    class Runner
      class WebUtils
        class Finances
          class Bills
            class Consume
              runner_with :help do
                desc 'Consome faturas.'
                bool_opt '-c', '--confirm', 'Confirma as mudanças'
              end

              # include ::Fs::CheckDirectoryOrFile

              def run
                start_banner
                consume.perform
              end

              private

              def consume_uncached
                runner_context.call(:instance).finances.bills.consume
              end

              def start_banner
                infov 'Instance', consume.instance
                infov 'Pending directory', consume.pending_directory
                infov 'Registered directory', consume.registered_directory
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ehbrs-tools-0.43.1 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.43.0 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.42.0 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.39.1 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.39.0 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.38.0 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.37.0 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.36.0 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.35.1 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.35.0 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.34.0 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.33.0 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.32.0 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.31.1 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.31.0 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.30.0 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb
ehbrs-tools-0.29.0 lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb