Class: Constancy::CLI::TargetsCommand
- Inherits:
-
Object
- Object
- Constancy::CLI::TargetsCommand
- Defined in:
- lib/constancy/cli/targets_command.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# 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 |