Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
Browse files Browse the repository at this point in the history
… Make provider upgradable; Add logic to correctly switch between channels
  • Loading branch information
root-expert committed Sep 12, 2024
1 parent 4c08fd3 commit 8f513a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/puppet/provider/package/snap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@
has_feature :installable, :versionable, :install_options, :uninstallable, :purgeable, :upgradeable
confine feature: %i[net_http_unix_lib snapd_socket]

mk_resource_methods

def self.instances
Puppet.info('called instances')
@installed_snaps ||= installed_snaps
Puppet.info("installed_snaps = #{@installed_snaps}")
@installed_snaps.map! do |snap|
new(name: snap['name'], ensure: snap['tracking-channel'], provider: 'snap')
end
@installed_snaps.each { |it| Puppet.info("snap = #{it&.name} #{it[:ensure]} #{it&.provider}") }
@installed_snaps.each { |it| Puppet.info("methods = #{it.methods}") }
#@installed_snaps.each { |it| Puppet.info("snap = #{it&.name} #{it[:ensure]} #{it&.provider}") }

Check failure on line 29 in lib/puppet/provider/package/snap.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/LeadingCommentSpace: Missing space after `#`. (https://rubystyle.guide#hash-space)
end

def query
Expand Down

0 comments on commit 8f513a9

Please sign in to comment.