class Covalence::Context
Maybe just call this targets
Public Class Methods
new(attributes = {}, *args)
click to toggle source
Calls superclass method
# File lib/covalence/core/entities/context.rb, line 19 def initialize(attributes = {}, *args) super self.valid? end
Public Instance Methods
namespace()
click to toggle source
# File lib/covalence/core/entities/context.rb, line 24 def namespace return "" if name.blank? "#{name}:" end
to_command_options()
click to toggle source
# File lib/covalence/core/entities/context.rb, line 29 def to_command_options values.map { |value| "-target=\"#{value}\"" } end
to_packer_command_options()
click to toggle source
# File lib/covalence/core/entities/context.rb, line 33 def to_packer_command_options return "" if values.blank? "-only=#{values.join(',')}" end