class Taketo::Actions::Matches

Public Class Methods

new(options) click to toggle source
Calls superclass method Taketo::Actions::BaseAction::new
# File lib/taketo/actions/matches.rb, line 11
def initialize(options)
  super
  @resolver = if options[:list]
    GroupResolver
  elsif options[:view]
    NodeResolver
  else
    ServerResolver
  end.new(config, destination_path)
end

Public Instance Methods

run() click to toggle source
# File lib/taketo/actions/matches.rb, line 22
def run
  puts DestinationMatcher.new(@resolver.nodes).matches.join(" ")
end