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