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

Version Path
usman-0.4.10.pre.materialize lib/temp/roles.rake
usman-0.4.9.pre.materialize lib/temp/roles.rake
usman-0.4.8.pre.materialize lib/temp/roles.rake
usman-0.4.7.pre.materialize lib/temp/roles.rake
usman-0.4.6.pre.materialize lib/temp/roles.rake
usman-0.4.5.pre.materialize lib/temp/roles.rake
usman-0.4.4.pre.materialize lib/temp/roles.rake
usman-0.4.3.pre.materialize lib/temp/roles.rake
usman-0.4.2.pre.materialize lib/temp/roles.rake
usman-0.4.1.pre.materialize lib/temp/roles.rake
usman-0.4.0.pre.materialize lib/temp/roles.rake
usman-0.3.38 lib/temp/roles.rake
usman-0.3.37 lib/temp/roles.rake
usman-0.3.36 lib/temp/roles.rake
usman-0.3.35 lib/temp/roles.rake
usman-0.3.34 lib/temp/roles.rake
usman-0.3.33 lib/temp/roles.rake
usman-0.3.32 lib/temp/roles.rake
usman-0.3.31 lib/temp/roles.rake
usman-0.3.30 lib/temp/roles.rake