class Teapot::Command::Selection

Public Instance Methods

call() click to toggle source
# File lib/teapot/command/selection.rb, line 44
def call
        context = parent.context
        
        self.process(selection(parent.context))
end
selection(context) click to toggle source
# File lib/teapot/command/selection.rb, line 36
def selection(context)
        if targets = self.targets
                context.select(targets)
        else
                context.select(context.configuration[:build])
        end
end
targets() click to toggle source
# File lib/teapot/command/selection.rb, line 30
def targets
        if @targets and @targets.any?
                Set.new(@targets)
        end
end