Sha256: 648fe0279551f11db7c640c9762b58842540def6dfcfb2f8bc5db8e323b52397
Contents?: true
Size: 678 Bytes
Versions: 67
Compression:
Stored size: 678 Bytes
Contents
require 'csv' require 'open-uri' require 'time' namespace 'usman' do namespace 'import' do desc "Import Roles" task 'roles' => :environment do verbose = true verbose = false if ["false", "f","0","no","n"].include?(ENV["verbose"].to_s.downcase.strip) path = ENV['path'] Role.import_data(Usman::Engine, path, false, verbose) end namespace 'dummy' do desc "Load Dummy Roles" task 'roles' => :environment do verbose = true verbose = false if ["false", "f","0","no","n"].include?(ENV["verbose"].to_s.downcase.strip) Role.import_data(Usman::Engine, nil, true, verbose) end end end end
Version data entries
67 entries across 67 versions & 1 rubygems