Class: InstanceAccountant::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/instance_accountant/cli.rb

Constant Summary collapse

SIGNALS =
[]
TWENTY_MINUTES =
20 * 60

Instance Method Summary collapse

Instance Method Details

#accountObject



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/instance_accountant/cli.rb', line 79

def 
  if price_but_not_income_and_receivable options
    STDERR.puts '--price requires --income_acct and --receivable_acct'
    exit 0
  end

  i = 0

  loop do
    consider_posting i, options
    consider_exiting
    sleep 1
    i += 1
  end
end