Sha256: 48cfcedaeb2e1a82fab7231e7f75d05377dd66fc2e617770c7370a2758b8d10f

Contents?: true

Size: 775 Bytes

Versions: 1

Compression:

Stored size: 775 Bytes

Contents

require "arxutils_sqlite3"

module Feedlrop
  class Cli
    def self.setup
      token = ENV.fetch("FEEDLY_DEVELOPER_ACCESS_TOKEN", nil)
      user_id = ENV.fetch("FEEDLER_USE_ID", nil)
      env = ENV.fetch("ENV", nil)
      # env ||= "development"
      env ||= "production"

      hash = {
        'db_dir' => Arxutils_Sqlite3::Config::DB_DIR,
        'migrate_dir' => Arxutils_Sqlite3::Config::MIGRATE_DIR,
        'config_dir' => Arxutils_Sqlite3::Config::CONFIG_DIR,
        "dbconfig" => Arxutils_Sqlite3::Config::DBCONFIG_SQLITE3,
        'env' => env,
        'log_fname' => Arxutils_Sqlite3::Config::DATABASELOG,
        'output_dir' => ::Feedlrop::OUTPUT_DIR,
        'pstore_dir' =>  ::Feedlrop::PSTORE_DIR,
      }

      [token, user_id, hash]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
feedlrop-0.1.24 lib/feedlrop/cli.rb