apiaryio 0.16.0 → 0.16.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 +1 -0
- data/lib/apiary/cli.rb +1 -0
- data/lib/apiary/command/archive.rb +5 -0
- data/lib/apiary/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3f826ea9db9773c47de22a91b8627ab015c4aaab3356453e15d9e7c9a7a6c2f
|
4
|
+
data.tar.gz: d325cd4be26355139c01e2e1f8cb62ff49a148e7740042ad5cfb8933e9aec3ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 908a8d90749ab666fb1427ab8f2950badb74ac91dde5c54faf7a6c2b3372015f12c9066df6a622590090d59af6fdea9a96749e4b68b862ae307c1e8ebc23920a
|
7
|
+
data.tar.gz: 5cb3e36dfbd29a7cd81056ccf9273b665dc2a780a18404b226e70b7a8e8697aad359b638bd4f3dfacdf06fe521cab4161edd931bd1539ab07f06593288538242
|
data/README.md
CHANGED
data/lib/apiary/cli.rb
CHANGED
@@ -12,6 +12,7 @@ module Apiary
|
|
12
12
|
|
13
13
|
desc 'archive', 'Archive All Your API Description Documents from apiary.io to local files named following [api-project-subdomain.apib] pattern.'
|
14
14
|
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host', hide: true
|
15
|
+
method_option :exclude_team_projects, type: :boolean, default: false, desc: 'Skip team projects'
|
15
16
|
|
16
17
|
def archive
|
17
18
|
cmd = Apiary::Command::Archive.new options
|
@@ -37,7 +37,12 @@ module Apiary::Command
|
|
37
37
|
response = query_apiary
|
38
38
|
|
39
39
|
response['apis'].each do |api|
|
40
|
+
if api['apiIsTeam'] == true && @options.exclude_team_projects == true
|
41
|
+
puts "#{api['apiSubdomain']}... Team API skipping"
|
42
|
+
next
|
43
|
+
end
|
40
44
|
puts api['apiSubdomain']
|
45
|
+
|
41
46
|
@options = OpenStruct.new
|
42
47
|
@options.api_host ||= 'api.apiary.io'
|
43
48
|
@options.api_name ||= api['apiSubdomain']
|
data/lib/apiary/version.rb
CHANGED