Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
Make add the default action for apt_repository, fixes COOK-891
Browse files Browse the repository at this point in the history
  • Loading branch information
sometimesfood authored and jtimberman committed Feb 2, 2012
1 parent 8db6c97 commit cb89bd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apt/resources/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@

actions :add, :remove

def initialize(*args)
super
@action = :add
end

#name of the repo, used for source.list filename
attribute :repo_name, :kind_of => String, :name_attribute => true
attribute :uri, :kind_of => String
Expand Down

0 comments on commit cb89bd3

Please sign in to comment.