soar_customer 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/soar_customer/version.rb +1 -1
- data/lib/soar_customer.rb +7 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49c08c11ee685f01058436be76df7090f9811288
|
4
|
+
data.tar.gz: ecec2167fba61231ae9495dbdfee7c7330a5b56a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb9387561f71300b282678f4b7f4ff43bc71db5b8f024a8e49ae75d237379f92a8d5ddef177e16d5cd8cfd0e76a4dc990b32252eeef5235bc6e71de1069272d0
|
7
|
+
data.tar.gz: 301fdfe1ce672c56d97e666944227eeaa8843caf70ad7eb05948a3653f25b39d7d7da6c9e5f83c38f5abb71779a205b0f845990b752264f7bc695e70c6cdecd9
|
data/README.md
CHANGED
@@ -39,6 +39,11 @@ The fake service can be found in spec/mock_hapi/
|
|
39
39
|
|
40
40
|
## Usage
|
41
41
|
|
42
|
+
#### Before use the following configuration details will need to be injected
|
43
|
+
1. username - forms part of credentials
|
44
|
+
2. password - forms part of credentials
|
45
|
+
3. server_url - the hetzner api service URL you intend this provider to use
|
46
|
+
|
42
47
|
## License
|
43
48
|
|
44
49
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/lib/soar_customer.rb
CHANGED
@@ -38,6 +38,13 @@ module SoarCustomer
|
|
38
38
|
validate_credentials(credentials)
|
39
39
|
remember_credentials(credentials)
|
40
40
|
end
|
41
|
+
|
42
|
+
# Bootstrapping the application via configuration
|
43
|
+
def bootstrap(configuration)
|
44
|
+
@configuration = configuration
|
45
|
+
validate_configuration(@configuration)
|
46
|
+
remember_configuration(@configuration)
|
47
|
+
end
|
41
48
|
|
42
49
|
# Used to create a profile through HAPI
|
43
50
|
# @return [String] Returns body of message (JSON string) from HAPI response
|
@@ -52,14 +59,6 @@ module SoarCustomer
|
|
52
59
|
end
|
53
60
|
|
54
61
|
protected
|
55
|
-
|
56
|
-
# Bootstrapping the application via configuration
|
57
|
-
def bootstrap(configuration)
|
58
|
-
@configuration = configuration
|
59
|
-
validate_configuration(@configuration)
|
60
|
-
remember_configuration(@configuration)
|
61
|
-
end
|
62
|
-
|
63
62
|
# Generic Method for Posting to HAPI
|
64
63
|
# @param endpoint [String] used for what resource to access on HAPI
|
65
64
|
# @param data [JSON] customer details
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soar_customer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- daneb
|
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
204
|
version: '0'
|
205
205
|
requirements: []
|
206
206
|
rubyforge_project:
|
207
|
-
rubygems_version: 2.
|
207
|
+
rubygems_version: 2.5.1
|
208
208
|
signing_key:
|
209
209
|
specification_version: 4
|
210
210
|
summary: Data provider to customer data. Internal use
|