class Constancy::CLI::TargetsCommand

Public Class Methods

run() click to toggle source
# File lib/constancy/cli/targets_command.rb, line 7
def run
  Constancy::CLI.configure(call_external_apis: false)

  Constancy.config.sync_targets.each do |target|
    if target.name
      puts target.name
    else
      puts "[unnamed target] #{target.datacenter}:#{target.prefix}"
    end
  end
end