chef/cookbooks/ark/libraries/platform_specific_builders.rb
Greg Karékinian a32f34b408 Vendor the external cookbooks
Knife-Zero doesn't include Berkshelf support, so vendoring everything in
the repo is convenient again
2019-10-13 19:17:42 +02:00

24 lines
610 B
Ruby

module Ark
module PlatformSpecificBuilders
def generates_archive_commands_for(_name, options)
condition = options[:when_the]
builder = options[:with_klass]
archive_command_generators.push [condition, builder]
end
def archive_command_generators
@archive_command_generators ||= []
end
def generates_owner_commands_for(_name, options)
condition = options[:when_the]
builder = options[:with_klass]
owner_command_generators.push [condition, builder]
end
def owner_command_generators
@owner_command_generators ||= []
end
end
end