This repository has been archived by the owner on Aug 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
385 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>apidocs</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>com.aptana.ide.core.unifiedBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>com.aptana.ruby.core.rubynature</nature> | ||
<nature>com.aptana.projects.webnature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM ruby:2.0 | ||
|
||
RUN gem install -N conjur-cli | ||
|
||
ADD test/conjur.conf /etc/conjur.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'apiaryio' | ||
|
||
#ruby-gemset=apidocs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
apiaryio (0.3.3) | ||
json (~> 1.8) | ||
rack (~> 1.6.4) | ||
rake (~> 10.4) | ||
rest-client (~> 1.8) | ||
thor (~> 0.19.1) | ||
domain_name (0.5.25) | ||
unf (>= 0.0.5, < 1.0.0) | ||
http-cookie (1.0.2) | ||
domain_name (~> 0.5) | ||
json (1.8.3) | ||
mime-types (2.99) | ||
netrc (0.11.0) | ||
rack (1.6.4) | ||
rake (10.4.2) | ||
rest-client (1.8.0) | ||
http-cookie (>= 1.0.2, < 2.0) | ||
mime-types (>= 1.16, < 3.0) | ||
netrc (~> 0.7) | ||
thor (0.19.1) | ||
unf (0.1.4) | ||
unf_ext | ||
unf_ext (0.0.7.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
apiaryio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
.PHONY: nodejs-image cli-image | ||
|
||
default: api.md | ||
|
||
test: nodejs-image api.md | ||
echo "Running tests against container '$(CONJUR_CONTAINER)'" | ||
summon docker run \ | ||
--rm \ | ||
--link $(CONJUR_CONTAINER):conjur \ | ||
-v $(PWD):/app \ | ||
-e "NODE_TLS_REJECT_UNAUTHORIZED=0" \ | ||
--env-file @SUMMONENVFILE \ | ||
apidocs \ | ||
dredd \ | ||
./api.md \ | ||
conjur \ | ||
--reporter junit \ | ||
--output report.xml \ | ||
--reporter html \ | ||
--output report.html \ | ||
--reporter apiary \ | ||
--hookfiles hooks.js \ | ||
--language nodejs | ||
|
||
preview: api.md | ||
rvm use --create 2.0.0@apidocs | ||
bundle | ||
apiary preview --server --port=8081 --path api.md | ||
|
||
api.md: nodejs-image src/* src/partials/* | ||
docker run \ | ||
--rm \ | ||
-v $(PWD):/app \ | ||
apidocs \ | ||
hercule src/api.md -o api.md | ||
|
||
nodejs-image: | ||
docker build -t apidocs . | ||
|
||
cli-image: | ||
docker build -t apidocs-conjur-cli -f Dockerfile.cli . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.