A wrapper for the AppVeyor API
Inspiration from https://github.com/esaio/esa-ruby
This client will accept either an APPVEYOR_API_KEY
as an argument or detect an environment variable
$APPVEYOR_API_KEY
@client = AppVeyor::Client.new(access_token: '123456787980nthrthrt')
@client.list_environments
@client.list_projects
awesome_environment={"deploymentEnvironmentId":12168,"name":"production","provider":"FTP","settings":{"providerSettings":[{"name":"server","value":{"value":"ftp.server.com","isEncrypted":false}},{"name":"username","value":{"value":"ftp-user","isEncrypted":false}},{"name":"password","value":{"value":"password","isEncrypted":true}}],"environmentVariables":[{"name":"my-var","value":{"value":"123","isEncrypted":false}}]}}
@client.update_environment(awesome_environment)