bin/amiba-wp-import in amiba-0.0.3 vs bin/amiba-wp-import in amiba-0.0.4
- old
+ new
@@ -1,24 +1,17 @@
#!/usr/bin/env ruby
# -*- mode: ruby -*-
require 'rubygems'
-if !File.exist?('Gemfile')
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
-end
-
-ENV["AMIBA_BIN"] = "true"
-
IMAGE_ROOT="http://wp-uploads.s3.amazonaws.com/wp-content/uploads/"
-require 'bundler/setup'
-Bundler.require(:default, :production, :wp)
-
+require 'sequel'
require 'optparse'
-require 'amiba/reverse_markdown'
-
require 'cgi'
require 'uri'
+
+require 'amiba/all'
+require 'amiba/reverse_markdown'
include Amiba::Repo
options = {}
options[:dbtype] = "mysql"