tanuki-universe 0.0.3 → 0.0.4
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/.gitignore +0 -1
- data/README.md +23 -2
- data/config.json +8 -0
- data/lib/tanuki/universe/gitlab_client.rb +1 -1
- data/lib/tanuki/universe/version.rb +1 -1
- metadata +2 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: f56b4a6cfc038b35090d24940243f9bc504304de
         | 
| 4 | 
            +
              data.tar.gz: 34dbac62871e7b97641a728392359a42faa256b0
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 5d176303ac2b497f7032a48111942a330a91a0550773162e8e86a6fe996e826a44efe3fc9e46165dcad4d542beec572674efd509a6bdc65e113e935374acf996
         | 
| 7 | 
            +
              data.tar.gz: b0d6937732e25a76e1c3b940477a624b7da4db4b70fb97fbe408e1e6611ad3f4ab572c53613a3e627c7f76c2014fe07900941cf2a6379b82af69d8fdb907c65c
         | 
    
        data/.gitignore
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | @@ -4,6 +4,16 @@ Generate universe file from private Gitlab. | |
| 4 4 |  | 
| 5 5 | 
             
            Please see the following URL(https://docs.chef.io/api_chef_server.html#universe).
         | 
| 6 6 |  | 
| 7 | 
            +
            ## Caution(2017/11/09)⚠️
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            Please add this to Gemfile.
         | 
| 10 | 
            +
            ```
         | 
| 11 | 
            +
            gem 'gitlab', git: 'https://github.com/NARKOZ/gitlab.git'
         | 
| 12 | 
            +
            ```
         | 
| 13 | 
            +
            It needs to be obtained from master branch to require fixes not included in the latest release.
         | 
| 14 | 
            +
             | 
| 15 | 
            +
             | 
| 16 | 
            +
             | 
| 7 17 | 
             
            ## Installation
         | 
| 8 18 |  | 
| 9 19 | 
             
            Add this line to your application's Gemfile:
         | 
| @@ -43,10 +53,21 @@ Create config file. (Default is 'config.json') | |
| 43 53 |  | 
| 44 54 | 
             
            You can also use environment variables.
         | 
| 45 55 | 
             
            - ENV['GITLAB_API_ENDPOINT']
         | 
| 46 | 
            -
            - ENV[' | 
| 56 | 
            +
            - ENV['GITLAB_API_PRIVATE_TOKEN']
         | 
| 47 57 | 
             
            - ENV['GITLAB_COOKBOOKS_GROUP']
         | 
| 48 58 |  | 
| 49 | 
            -
             | 
| 59 | 
            +
            Even then you need config file below.
         | 
| 60 | 
            +
            ```
         | 
| 61 | 
            +
            {
         | 
| 62 | 
            +
              "endpoints": [
         | 
| 63 | 
            +
                {
         | 
| 64 | 
            +
                  "type": "gitlab",
         | 
| 65 | 
            +
                  "options": {}
         | 
| 66 | 
            +
                }
         | 
| 67 | 
            +
              ]
         | 
| 68 | 
            +
            }
         | 
| 69 | 
            +
            ```
         | 
| 70 | 
            +
             | 
| 50 71 |  | 
| 51 72 | 
             
            ```
         | 
| 52 73 | 
             
            Commands:
         | 
    
        data/config.json
    ADDED
    
    
| @@ -17,7 +17,7 @@ module Tanuki | |
| 17 17 |  | 
| 18 18 | 
             
                  def parse_options(options)
         | 
| 19 19 | 
             
                    @group = ENV['GITLAB_COOKBOOKS_GROUP'] || options['group']
         | 
| 20 | 
            -
                    @private_token = ENV[' | 
| 20 | 
            +
                    @private_token = ENV['GITLAB_API_PRIVATE_TOKEN'] || options['private_token']
         | 
| 21 21 | 
             
                    @url = ENV['GITLAB_API_ENDPOINT'] || options['url']
         | 
| 22 22 | 
             
                  end
         | 
| 23 23 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: tanuki-universe
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.4
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - kubihie
         | 
| @@ -99,6 +99,7 @@ files: | |
| 99 99 | 
             
            - bin/console
         | 
| 100 100 | 
             
            - bin/setup
         | 
| 101 101 | 
             
            - bin/tanuki-universe
         | 
| 102 | 
            +
            - config.json
         | 
| 102 103 | 
             
            - lib/tanuki/universe.rb
         | 
| 103 104 | 
             
            - lib/tanuki/universe/.DS_Store
         | 
| 104 105 | 
             
            - lib/tanuki/universe/cli.rb
         |