Sha256: 5786e7098e41516f4ad648324a9bf534a994f714b35212007078427faf3d8e7f

Contents?: true

Size: 910 Bytes

Versions: 38

Compression:

Stored size: 910 Bytes

Contents

# frozen_string_literal: true

namespace :leaps do
  desc 'Create Enumeration objects for picklists from Salesforce Metadata'
  task :create_enums do
    LeapSalesforce::Users.execute_as_if_present key: :admin do
      require_relative '../generator/soql_enums'
      LeapSalesforce::Generator::SoqlEnums.new.create
    end
  end

  desc 'Create Soql Data objects'
  task :create_soql_objects do
    LeapSalesforce::Users.execute_as_if_present key: :admin do
      require_relative '../generator/soql_objects'
      LeapSalesforce::Generator::SoqlObjects.new.create_all
    end
  end

  desc 'Create objects, fields, enums'
  task create_all: :create_soql_objects do
    # TODO: This is not ideal. But only way I could get it to work
    puts `bundle exec rake leaps:create_soql_objects`
    puts 'Creating enums. Please wait until finished for output'
    puts `bundle exec rake leaps:create_enums`
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
leap_salesforce-0.2.28 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.27 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.26 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.24 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.23 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.21 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.20 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.19 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.18 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.17 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.16 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.15 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.14 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.13 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.12 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.11 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.10 lib/leap_salesforce/rake/setup.rake
leap_salesforce-0.2.9 lib/leap_salesforce/rake/setup.rake