Skip to content

Commit

Permalink
Added remove functionality for install service (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmmatos authored Oct 26, 2022
1 parent 7dbecc5 commit ec36d37
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions resources/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def insync?(new_resource, desired_version)
false
end

# Get falcon package name
PACKAGE_NAME = 'falcon-sensor'.freeze

action :install do
# Create file with contents

Expand Down Expand Up @@ -81,3 +84,10 @@ def insync?(new_resource, desired_version)
end
end
end

action :remove do
package 'falcon' do
package_name PACKAGE_NAME
action :remove
end
end

0 comments on commit ec36d37

Please sign in to comment.