Sha256: c38f2b23a304eb9682dca5dc654405ffa56c0482bc5b265e7eec8731620a3de4
Contents?: true
Size: 1.59 KB
Versions: 1
Compression:
Stored size: 1.59 KB
Contents
# # Author:: S.Cavallo (<smcavallo@hotmail.com>) # Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # require_relative "package" class Chef class Resource class SnapPackage < Chef::Resource::Package provides :snap_package, target_mode: true description "Use the **snap_package** resource to manage snap packages on Debian and Ubuntu platforms." introduced "15.0" examples <<~DOC **Install a package** ```ruby snap_package 'hello' ``` **Upgrade a package** ```ruby snap_package 'hello' do action :upgrade end ``` **Install a package with classic confinement** ```ruby snap_package 'hello' do options 'classic' end ``` DOC allowed_actions :install, :upgrade, :remove, :purge property :channel, String, description: "The default channel. For example: stable.", default: "stable", equal_to: %w{edge beta candidate stable}, desired_state: false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chef-18.5.0 | lib/chef/resource/snap_package.rb |