Skip to content

Commit

Permalink
Merge pull request #355 from chef/tduffield/update-readme
Browse files Browse the repository at this point in the history
Update README examples with new platform versions
  • Loading branch information
tduffield committed Apr 15, 2021
2 parents dcb9b4f + 4bf7da1 commit 5e68b96
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ options = {
product_name: 'chef',
product_version: :latest,
platform: 'mac_os_x',
platform_version: '10.9',
platform_version: '10.15',
architecture: 'x86_64'
}

artifact = Mixlib::Install.new(options).artifact_info
# => #<Mixlib::Install::ArtifactInfo>

artifact.url
# => "https://packages.chef.io/files/current/chef/12.14.90/mac_os_x/10.9/chef-12.14.90-1.dmg"
# => "https://packages.chef.io/files/stable/chef/16.13.16/mac_os_x/10.15/chef-16.13.16-1.x86_64.dmg"
```

### Get list of artifacts for all platforms given a package version
Expand All @@ -64,7 +64,7 @@ artifacts = Mixlib::Install.new(options).artifact_info
# => [#<Mixlib::Install::ArtifactInfo>, ...]

artifacts.first.url
# => => "https://packages.chef.io/files/current/chef/12.14.90/mac_os_x/10.11/chef-12.14.90-1.dmg"
# => => "https://packages.chef.io/files/stable/chef/16.13.16/mac_os_x/10.15/chef-16.13.16-1.x86_64.dmg"
```

### Get latest artifacts for a partial version
Expand All @@ -87,9 +87,9 @@ artifacts.first.version
options = {
channel: :current,
product_name: 'chef',
product_version: '12',
product_version: '16',
platform: 'mac_os_x',
platform_version: '10.9',
platform_version: '10.15',
architecture: 'x86_64'
}

Expand Down Expand Up @@ -202,7 +202,7 @@ options = {
product_name: 'chef',
product_version: :latest,
platform: 'mac_os_x',
platform_version: '10.9',
platform_version: '10.15',
architecture: 'x86_64',
include_metadata: true,
}
Expand Down

0 comments on commit 5e68b96

Please sign in to comment.