vagrant_cloud 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -9
- data/lib/vagrant_cloud/account.rb +2 -2
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f775de1cb62e00b46563d91fac4dd85dec7c55c
|
4
|
+
data.tar.gz: 3dda5f311191047248d72c56477adfc16ccb425f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d64b1d9e391b675dd2fd5fc61abe9293558b9f42b30abeb90c3ed8ff761e940e38881f16098860581378ff681b322b2d62d74d77af8a198d2cf2ededc0f7391d
|
7
|
+
data.tar.gz: 58c5acdae88765dff652da9756cab38a79a02d7d7d626ee4df0f84fee1a75401648cef4c2fbf6f9fd6c66f272488a770bff0c291358cbe0f4ab9730b901c8e59
|
data/README.md
CHANGED
@@ -1,22 +1,23 @@
|
|
1
|
-
vagrant_cloud
|
1
|
+
vagrant_cloud
|
2
2
|
=============
|
3
|
+
Minimalistic ruby client for the [HashiCorp Atlas API](https://atlas.hashicorp.com/docs) (previously *Vagrant Cloud API*).
|
3
4
|
|
4
|
-
|
5
|
+
[](https://travis-ci.org/cargomedia/vagrant_cloud)
|
6
|
+
[](https://rubygems.org/gems/vagrant_cloud)
|
5
7
|
|
6
|
-
|
8
|
+
|
9
|
+
This client allows to create, modify and delete *boxes*, *versions* and *providers*.
|
10
|
+
The main entry point is an object referencing your *account*.
|
7
11
|
|
8
12
|
Usage
|
9
13
|
-----
|
10
|
-
The *vagrant_cloud* gem is hosted on [RubyGems](https://rubygems.org/gems/vagrant_cloud), see installation instructions there.
|
11
|
-
|
12
14
|
Example usage:
|
13
15
|
```ruby
|
14
16
|
account = VagrantCloud::Account.new('<username>', '<access_token>')
|
15
|
-
box =
|
17
|
+
box = account.ensure_box('my_box')
|
16
18
|
version = box.ensure_version('0.0.1')
|
17
|
-
|
18
|
-
provider_bar = version.ensure_provider('bar', 'http://example.com/bar.box')
|
19
|
+
provider = version.ensure_provider('virtualbox', 'http://example.com/foo.box')
|
19
20
|
|
20
21
|
version.release
|
21
|
-
puts
|
22
|
+
puts provider.download_url
|
22
23
|
```
|
@@ -79,7 +79,7 @@ module VagrantCloud
|
|
79
79
|
|
80
80
|
# @return [String]
|
81
81
|
def url_base
|
82
|
-
'https://
|
82
|
+
'https://atlas.hashicorp.com/api/v1'
|
83
83
|
end
|
84
84
|
|
85
85
|
# @param [Array] args
|
@@ -103,7 +103,7 @@ module VagrantCloud
|
|
103
103
|
end
|
104
104
|
|
105
105
|
# Default boxes to public can be overridden by providing :is_private
|
106
|
-
params[:is_private] = false unless
|
106
|
+
params[:is_private] = false unless params.has_key?(:is_private)
|
107
107
|
|
108
108
|
params
|
109
109
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cargo Media
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -66,8 +66,9 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.21'
|
69
|
-
description:
|
70
|
-
|
69
|
+
description: Minimalistic ruby client for the HashiCorp Atlas API (previously Vagrant
|
70
|
+
Cloud API)
|
71
|
+
email: tech@cargomedia.ch
|
71
72
|
executables: []
|
72
73
|
extensions: []
|
73
74
|
extra_rdoc_files: []
|
@@ -99,8 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
100
|
version: '0'
|
100
101
|
requirements: []
|
101
102
|
rubyforge_project:
|
102
|
-
rubygems_version: 2.
|
103
|
+
rubygems_version: 2.5.1
|
103
104
|
signing_key:
|
104
105
|
specification_version: 4
|
105
|
-
summary:
|
106
|
+
summary: HashiCorp Atlas API client
|
106
107
|
test_files: []
|