Sha256: e609c50f1ca8139d3c6bf55974e4d17b7c7066119004728259357beab2de9441

Contents?: true

Size: 1.41 KB

Versions: 4

Compression:

Stored size: 1.41 KB

Contents

# frozen_string_literal: true

require('thor')
require('cns/apibc')
require('cns/apice1')
require('cns/apice2')
require('cns/bigquery1')
require('cns/bigquery2')
require('cns/bigquery3')
require('cns/bigquery4')
require('cns/etherscan1')
require('cns/etherscan2')
require('cns/greymass1')
require('cns/greymass2')
require('cns/beaconchain1')
require('cns/beaconchain2')
require('cns/bitcoinde')
require('cns/kraken')
require('cns/paymium')
require('cns/therock')
require('cns/version')

module Cns
  # classe para carregar/mostrar dados transacoes eth & eos no bigquery
  class CLI < Thor
    desc 'weth', 'carrega transacoes eth no bigquery'
    option :h, type: :hash, default: {}, desc: 'configuracao ajuste reposicionamento temporal'
    # carrega transacoes eth no bigquery
    def weth
      Bigquery.new(options).processa_eth
    end

    desc 'work', 'carrega transacoes novas no bigquery'
    option :h, type: :hash, default: {}, desc: 'configuracao ajuste reposicionamento temporal'
    # carrega transacoes novas no bigquery
    def work
      Bigquery.new(options).processa_tudo
    end

    desc 'show', 'mostra resumo transacoes'
    option :v, type: :boolean, default: false, desc: 'mostra transacoes'
    option :t, type: :boolean, default: false, desc: 'mostra transacoes todas ou somente novas'
    # mostra resumo transacoes
    def show
      Bigquery.new(options).mostra_tudo
    end

    default_task :show
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cns-0.3.5 lib/cns.rb
cns-0.3.4 lib/cns.rb
cns-0.3.3 lib/cns.rb
cns-0.3.2 lib/cns.rb