Class: ReaperMan::Command::Package::Add

Inherits:
ReaperMan::Command::Package show all
Defined in:
lib/reaper-man/command/package/add.rb

Instance Method Summary collapse

Instance Method Details

#execute!Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/reaper-man/command/package/add.rb', line 7

def execute!
  arguments.each do |path|
    run_action "Adding package to repository manifest: #{path}" do
      list = ReaperMan::PackageList.new(config[:packages_file], config)
      list.add_package(path)
      list.write!
      nil
    end
  end
end