lib/haravan_theme.rb in haravan_theme-0.0.25 vs lib/haravan_theme.rb in haravan_theme-0.0.26
- old
+ new
@@ -140,22 +140,20 @@
haravan.get(path).code == 200
end
def self.get_index
puts(config[:theme_id] ? '' : "Hãy nhập theme_id")
+ puts("https://#{config[:store]}")
haravan.get(path)
end
private
def self.haravan
basicAuth = Base64.strict_encode64(config[:api_key] + ':' + config[:password])
headers 'accept' => '*/*'
headers 'Content-Type' => 'application/json'
headers 'Authorization' => 'Basic ' + basicAuth
base_uri "https://#{config[:store]}"
-
- puts(base_uri)
-
HaravanTheme
end
def self.watch_until_processing_complete(theme)
count = 0