lib/ciborg/cli.rb
# The proc is given a Fog server object and must return true/false
The proc is given a Fog server object and must return true/false
The proc is given a Fog server object and must return true / false
def confirmation_proc(force)
      if force
        ->(_) { true }
      else
        ->(server) {
          yes?("DESTROY #{server.id} (#{server.public_ip_address})?")
        }
      end
    end
def confirmation_proc ( force ) if force -> ( _ ) { true } else -> ( server ) { yes? ( "DESTROY #{server.id} (#{server.public_ip_address})?" ) } end end
The proc is given a Fog server object and must return true/false
The proc is given a Fog server object and must return true / false
force