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.beta.200.883.f5f063b lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.884.4bd86e6 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.869.9609b39 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.856.8c0fec5 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.809.bdfa8c3 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.785.05d4af9 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.744.99f67fc lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.720.44fbabd lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.713.e5c3150 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.681.7c84f4a lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.663.ceecdee lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.650.7c93155 lib/tasks/cms_license_check.rake
infopark_rails_connector-6.8.0.beta.200.621.4c8e1b0 lib/tasks/cms_license_check.rake