Update cookbooks and add wordpress cookbook
This commit is contained in:
23
cookbooks/ark/libraries/platform_specific_builders.rb
Normal file
23
cookbooks/ark/libraries/platform_specific_builders.rb
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
Reference in New Issue
Block a user