lib/kpm/tasks.rb in kpm-0.5.2 vs lib/kpm/tasks.rb in kpm-0.5.3

- old
+ new

@@ -477,11 +477,15 @@ :default => nil, :desc => 'DB credentials <user> <password>' method_option :data_delimiter, :type => :string, :default => "|", - :desc => 'Data delimiter' + :desc => 'Data delimiter' + method_option :database_host, + :type => :string, + :default => nil, + :desc => 'Database Host name' desc 'account', 'export/import accounts' def account logger.info 'Please wait processing the request!!!' begin config_file = nil @@ -513,10 +517,10 @@ raise Interrupt,'Need to specify an action' end account = KPM::Account.new(config_file || options[:config_file],options[:killbill_api_credentials],options[:killbill_credentials], - options[:killbill_url],options[:database_name],options[:database_credentials],options[:data_delimiter], logger) + options[:killbill_url],options[:database_name],options[:database_credentials],options[:database_host],options[:data_delimiter], logger) export_file = nil round_trip_export_import = false if not options[:export].nil? export_file = account.export_data(options[:export])