license activate

This commit is contained in:
Yan
2017-11-29 17:59:46 +06:30
parent a1deab2b5e
commit 29fa95d229
4 changed files with 13 additions and 9 deletions

View File

@@ -74,7 +74,7 @@ class License
def detail_with_local_file()
has_license = true # verify_license()
has_license = true #verify_license()
if has_license
# puts "VERIFIED"
@@ -156,14 +156,13 @@ class License
# License File Creation
def create_license_file(response_data)
if check_license_file
if File.exist?("config/license.yml")
delete_license_file
end
begin
# Licese File Creation
f = File.open("config/license.yml", "w")
f.write("name: #{response_data['name']}\n")
f = File.open("config/license.yml", "w")
f.write("iv_key: #{response_data['iv_key']}\n")
f.write("shop_name: #{response_data['shop_name']}\n")
f.write("email: #{response_data['email']}\n")