Sha256: 323e7a1b6e109b8577c994d4f5d5ba81c9a7516fe9e512111ca0e20de9d6c0b5
Contents?: true
Size: 587 Bytes
Versions: 1
Compression:
Stored size: 587 Bytes
Contents
namespace :chillout do desc "Check chillout integration" task :check do Rails.initialize! config = Rails.configuration.chillout client = Chillout::Client.new(config[:secret], config.reject{|x| x == :secret}) check_result = client.check_api_connection if check_result.successful? puts "Chillout API available." elsif check_result.has_problem_with_authorization? puts "Chillout API available, but project couldn't authorize." else puts "Chillout API not available for given configuration:" puts client.config.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chillout-0.4.0 | lib/chillout/tasks.rb |