Sha256: 73fb55594cb021694ff1859d8e834d6940697646106e3941b413f81bef796c55

Contents?: true

Size: 650 Bytes

Versions: 2

Compression:

Stored size: 650 Bytes

Contents

#!/usr/bin/env ruby
require 'ferry'

# --help
if ['--help', '-H', nil].include?(ARGV[0])
  puts"
  Choose one of the following commands ...
  ferry to_csv [your db environment]                             Exports database to csv file in lib/ferry_to_csv_[your db environment]
  ferry to_new_db_type [your db environment] [desired adapter]   Switches specified database env to a new adapter
  ferry [--help, -H, '']                                         Displays this menu!
  "
end

exporter = Ferry::Exporter.new
exporter.to_csv if ARGV[0] == 'to_csv'
exporter.to_yaml if ARGV[0] == 'to_yaml'
exporter.to_new_db_type if ARGV[0] == 'to_new_db_type'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ferry-0.1.3 bin/ferry
ferry-0.1.2 bin/ferry