Sha256: f2397b0f65a092d172c02f1485a7bf2d431fd2c7833e79234577bb3f42221fb3

Contents?: true

Size: 546 Bytes

Versions: 33

Compression:

Stored size: 546 Bytes

Contents

namespace :cms do
  namespace :license do
    desc "Check if a license file is valid (options: FILE=/path/to/license.xml, default: currently installed license)"
    task :check => :environment do
      RailsConnector::Configuration.license_file = ENV['FILE']
      puts "Checking license #{RailsConnector::Configuration.license_file}"
      begin
        Obj.root.fetch_attr_values
        puts "OK, license is valid."
        exit 0
      rescue RailsConnector::InvalidLicenseError => e
        puts e
        exit 1
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
infopark_rails_connector-6.8.0.539.93842523 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.529.114081979 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.518.30999728 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.515.34928522 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.498.46559598 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.480.261594408 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.444.171626367 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.406.131718077 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.356.19698103 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.348.160665197 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.328.4a753fc lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.322.c003f11 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.210.ed204b0 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.110.6570b45 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.72.d18d096 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.23.da7f96b lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.16.def5e85 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.15.a24f5ff lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.891.647580e lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.889.d503e42 lib/tasks/cms_license_check.rake