options = {
channel: :current,
product_name: 'chef',
product_version: :latest,
platform: 'mac_os_x',
platform_version: '10.9',
architecture: 'x86_64'
}
artifact = Mixlib::Install.new(options).artifact_info
# => ArtifactInfo
artifact.url
# => "http://opscode-omnibus-packages-current.s3.amazonaws.com/mac_os_x/10.9/x86_64/chef-12.5.1%2B20151009083009-1.dmg"
options = {
channel: :current,
product_name: 'chef',
product_version: :latest
}
artifacts = Mixlib::Install.new(options).artifact_info
# => Array<ArtifactInfo>
artifacts.first.url
# => "http://opscode-omnibus-packages-current.s3.amazonaws.com/mac_os_x/10.9/x86_64/chef-12.5.1%2B20151009083009-1.dmg"
Some tests are tagged :unstable
and can only run when connected to Chef's internal network. These are excluded by default. To run the :unstable
tests run: bundle exec rspec --tag unstable
.
- Fork it ( https://github.com/[my-github-username]/mixlib-install/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request