rancher-api 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28b3fd216a5f0a320ef4207a71862d3bc28127f7
4
- data.tar.gz: 7a92291162373ffb05e5856441618af5d6d05c94
3
+ metadata.gz: 884e264e5922dbe427b6cc1c0bad442e641535e4
4
+ data.tar.gz: e5a34d02c9a76121666ef88431b52b7dcc096f80
5
5
  SHA512:
6
- metadata.gz: 8fcfbd57cfcf91bfc1f0149088923967611aac804ba1ee6fbf0ead829f67032d4cdd8c1f3278a2891db2f6f775ec74ee5cec3769dd2bb9d848857a46fa6e24fa
7
- data.tar.gz: 63c23561df29aa8623826eb4df8cbc62c89fd4e612aa3b9001a728033009028045c6fd0ad5c738f1ec57b326516fd34bcdcf1380804a1161c486df99c76a1b16
6
+ metadata.gz: 6d77b40ccc8305cbd120401fe86c464c8a24604e9f65eaf5d995d052a24ad0ad5a760d665517ecf4ad652906bb542cdd381ae5dbac4bae4dbc9a5ac4b88e344b
7
+ data.tar.gz: 00dd6bb39c76e1f3d7c748f78564fcba4011d537929add53bfe5dd7daf013452bb210f7e893404da47d162483b06b6284d139107cdec33325c73f6b4a41076f8
@@ -2,6 +2,12 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [0.7.0] - 2016-12-15
6
+
7
+ ### Changed
8
+
9
+ - environment variable `RANCHER_URL` now must be set to environment url, i.e. `http://<rancher host>/v1/projects/1a9`
10
+
5
11
  ## [0.6.0] - 2016-12-14
6
12
 
7
13
  ### Changed
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rancher-api (0.6.0)
4
+ rancher-api (0.7.0)
5
5
  faraday_middleware
6
6
  faye-websocket
7
7
  her (~> 0.8.1)
data/README.md CHANGED
@@ -76,6 +76,10 @@ end
76
76
 
77
77
  #### Using environment variables
78
78
 
79
+ IMPORTANT NOTE: Use environment's API keys. This is done for compatibility with rancher-compose to utilize same keys
80
+
81
+ By default, the API keys under the API section are account API keys and you need to create an environment API key, which is in the Advanced Options.
82
+
79
83
  You can configure `rancher-api` gem using `rancher-compose`-compatible environment variables:
80
84
 
81
85
  - RANCHER_URL
@@ -7,7 +7,7 @@ module Rancher
7
7
  attr_accessor :verbose
8
8
 
9
9
  def initialize
10
- @url = "#{ENV['RANCHER_URL']}/v1/" if ENV['RANCHER_URL'].present?
10
+ @url = ENV['RANCHER_URL']
11
11
  @access_key = ENV['RANCHER_ACCESS_KEY']
12
12
  @secret_key = ENV['RANCHER_SECRET_KEY']
13
13
  end
@@ -9,8 +9,6 @@ module Rancher
9
9
  DIGITAL_OCEAN = 'digitalocean'.freeze
10
10
  VMWARE_VSPHERE = 'vmwarevsphere'.freeze
11
11
 
12
- collection_path 'projects/:project_id/machines'
13
-
14
12
  attributes :name, :state, :amazonec2Config, :azureConfig, :description,
15
13
  :digitaloceanConfig, :driver, :exoscaleConfig, :externalId,
16
14
  :labels, :openstackConfig, :packetConfig, :rackspaceConfig,
@@ -1,5 +1,5 @@
1
1
  module Rancher
2
2
  module Api
3
- VERSION = '0.6.0'.freeze
3
+ VERSION = '0.7.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rancher-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Kurkin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-14 00:00:00.000000000 Z
11
+ date: 2016-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: her