berkshelf-api 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
# 1.3.0
|
2
|
+
|
3
|
+
* Enhancements
|
4
|
+
* Added warning messages to startup when using github/file_store endpoints
|
5
|
+
* Bump Octokit dependency to ~> 3.0
|
6
|
+
|
7
|
+
* Bug Fix
|
8
|
+
* Fixed issue with GH indexing where there were a high number of repositories in an organization
|
9
|
+
|
1
10
|
# 1.2.2
|
2
11
|
|
3
12
|
* Enhancements
|
data/README.md
CHANGED
@@ -95,11 +95,13 @@ You may configure the endpoints to index by editing the JSON configuration file
|
|
95
95
|
}
|
96
96
|
```
|
97
97
|
|
98
|
-
###
|
98
|
+
### GitHub Organization
|
99
99
|
|
100
|
-
|
100
|
+
> WARNING: Using the GitHub endpoint is *STRONGLY FROWNED UPON* and potentially *DANGEROUS*. Please consider setting up a proper release process for the cookbooks you wish to index instead where they are uploaded to the community site or a Chef Server and use the chef_server endpoint instead.
|
101
|
+
|
102
|
+
GitHub limits the rate of requests to their API if not authenticated. For this reason the access_token option
|
101
103
|
is required. The api_endpoint, web_endpoint and ssl_verify options are only needed when you want to point to
|
102
|
-
a
|
104
|
+
a GitHub Enterprise server within your own organization
|
103
105
|
|
104
106
|
```json
|
105
107
|
{
|
@@ -4,6 +4,8 @@ module Berkshelf::API
|
|
4
4
|
class FileStore < Worker::Base
|
5
5
|
worker_type "file_store"
|
6
6
|
|
7
|
+
include Logging
|
8
|
+
|
7
9
|
# @return [String]
|
8
10
|
attr_reader :path
|
9
11
|
|
@@ -11,6 +13,13 @@ module Berkshelf::API
|
|
11
13
|
# the directory to search for local cookbooks
|
12
14
|
def initialize(options = {})
|
13
15
|
@path = Pathname(options[:path])
|
16
|
+
log.warn "You have configured a FileStore endpoint to index the contents of #{@path}."
|
17
|
+
log.warn "Using unfinalized artifacts, which this path may contain, to satisfiy your"
|
18
|
+
log.warn "dependencies is *STRONGLY FROWNED UPON* and potentially *DANGEROUS*."
|
19
|
+
log.warn ""
|
20
|
+
log.warn "Please consider setting up a release process for the cookbooks you wish to retrieve from this"
|
21
|
+
log.warn "filepathe where the cookbook is uploaded into a Hosted Chef organization, an internal"
|
22
|
+
log.warn "Chef Server, or the community site, and then replace this endpoint with a chef_server endpoint."
|
14
23
|
super(options)
|
15
24
|
end
|
16
25
|
|
@@ -8,6 +8,8 @@ module Berkshelf::API
|
|
8
8
|
class Github < Worker::Base
|
9
9
|
worker_type "github"
|
10
10
|
|
11
|
+
include Logging
|
12
|
+
|
11
13
|
# @return [String]
|
12
14
|
attr_reader :organization
|
13
15
|
|
@@ -21,6 +23,15 @@ module Berkshelf::API
|
|
21
23
|
api_endpoint: options[:api_endpoint], web_endpoint: options[:web_endpoint],
|
22
24
|
connection_options: {ssl: {verify: options[:ssl_verify].nil? ? true : options[:ssl_verify]}})
|
23
25
|
@organization = options[:organization]
|
26
|
+
|
27
|
+
log.warn "You have configured a GitHub endpoint to index the #{@organization} organization."
|
28
|
+
log.warn "Using unfinalized artifacts, such as cookbooks retrieved from Git, to satisfiy your"
|
29
|
+
log.warn "dependencies is *STRONGLY FROWNED UPON* and potentially *DANGEROUS*."
|
30
|
+
log.warn ""
|
31
|
+
log.warn "Please consider setting up a release process for the cookbooks you wish to retrieve from this"
|
32
|
+
log.warn "GitHub organization where the cookbook is uploaded into a Hosted Chef organization, an internal"
|
33
|
+
log.warn "Chef Server, or the community site, and then replace this endpoint with a chef_server endpoint."
|
34
|
+
|
24
35
|
super(options)
|
25
36
|
end
|
26
37
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: berkshelf-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-04-
|
13
|
+
date: 2014-04-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ridley
|
@@ -195,7 +195,7 @@ dependencies:
|
|
195
195
|
requirements:
|
196
196
|
- - ~>
|
197
197
|
- !ruby/object:Gem::Version
|
198
|
-
version: '
|
198
|
+
version: '3.0'
|
199
199
|
type: :runtime
|
200
200
|
prerelease: false
|
201
201
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -203,7 +203,7 @@ dependencies:
|
|
203
203
|
requirements:
|
204
204
|
- - ~>
|
205
205
|
- !ruby/object:Gem::Version
|
206
|
-
version: '
|
206
|
+
version: '3.0'
|
207
207
|
- !ruby/object:Gem::Dependency
|
208
208
|
name: semverse
|
209
209
|
requirement: !ruby/object:Gem::Requirement
|
@@ -307,7 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
307
307
|
version: '0'
|
308
308
|
segments:
|
309
309
|
- 0
|
310
|
-
hash:
|
310
|
+
hash: 1518731648173016161
|
311
311
|
requirements: []
|
312
312
|
rubyforge_project:
|
313
313
|
rubygems_version: 1.8.23
|